Mono Class Library: System.Globalization.DateTimeFormatInfo Overview | Members

System.Globalization.DateTimeFormatInfo.DateSeparator Property

Gets or sets the culture-specific string to use to separate the year, month, and day components of a date.

public string DateSeparator { set; get; }

Value

The string to use to separate the year, month and day components of a date.

Exceptions

TypeReason
ArgumentNullExceptionThe value specified for a set operation is a null reference.
InvalidOperationExceptionThe current instance is read-only and a set operation was attempted.

Remarks

The property value of the culture invariant DateTimeFormatInfo.DateSeparator is "/".

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0