The string to use to separate the year, month and day components of a date.
Type Reason ArgumentNullException The value specified for a set operation is a null reference. InvalidOperationException The current instance is read-only and a set operation was attempted.
If a custom format string includes the "/" format specifier, the DateTime.ToString method displays the value of DateTimeFormatInfo.DateSeparator in place of the "/" in the result string.
The DateTimeFormatInfo.DateSeparator property defines the string that replaces the date separator ("/" custom date and time format specifier) in a result string in a formatting operation. It also defines the date separator string in a parsing operation.