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

System.Globalization.DateTimeFormatInfo.LongDatePattern Property

Gets or sets the format pattern for a long date value. [Edit]

public string LongDatePattern { set; get; }

Value

A string containing the format pattern for a long date value. [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 DateTime.ParseExact(string, string, IFormatProvider) and DateTime.ToString methods associate the format pattern returned by this property with the 'D' format character.

The property value of the culture invariant DateTimeFormatInfo.LongDatePattern is "dddd, dd MMMM yyyy".

[Edit]

Requirements

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