DateTimeFormatInfo..::..DateSeparator Property
Gets or sets the string that separates the components of a date, that is, the year, month, and day.
Namespace:
System.GlobalizationAssembly: Bridge (in Bridge.dll)
Syntax
[FieldPropertyAttribute] public string DateSeparator { get; set; }
<FieldPropertyAttribute> _ Public Property DateSeparator As String Get Set
[FieldPropertyAttribute] public: property String^ DateSeparator { String^ get (); void set (String^ value); }
Return Value
The string that separates the components of a date, that is, the year, month, and day. The default for InvariantInfo is "/".Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | The property is being set to null. |
System..::..InvalidOperationException | The property is being set and the DateTimeFormatInfo object is read-only. |