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

System.Globalization.DateTimeFormatInfo.TimeSeparator Property

Gets or sets the culture-specific string to use to separate the components of time values (hour, minutes, seconds).

public string TimeSeparator { set; get; }

Value

The string to use to separate the components of time; that is, the hour, the minutes and the seconds.

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.TimeSeparator is ":".

Requirements

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