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. [Edit]

public string DateSeparator { set; get; }

Value

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

Exceptions

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

Remarks

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

Requirements

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