Gets or sets the string that separates the components of a date, that is, the year, month, and day.
Assembly: mscorlib (in mscorlib.dll)
If the custom pattern includes the format pattern "/", DateTime.ToString displays the value of in place of the "/" in the format pattern.
The date separator is derived from the ShortDatePattern property. Your applications are recommended to set the short date pattern to the exact value of interest, instead of attempting to have the date separator replaced. For example, to obtain the pattern MM-DD-yyyy, the application should set "MM-DD-yyyy" specifically. This also permits the setting of patterns such as "MM/DD, yyyy" that don't contain a traditional separator between all parts of the format.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2