System.Globalization.DateTimeFormatInfo.FullDateTimePattern Property

Gets or sets the custom format string for a long date and long time value.

Syntax

public string FullDateTimePattern { get; set; }

Value

A string containing the format pattern for a long date and long time value.

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 "F" standard format string is an alias for the DateTimeFormatInfo.FullDateTimePattern property. In other words, the custom format string assigned to this property defines the format of the result string for the "F" standard format string. For more information, see Standard Date and Time Format Strings.

The value of the DateTimeFormatInfo.FullDateTimePattern property is generated dynamically by concatenating the DateTimeFormatInfo.LongDatePattern and DateTimeFormatInfo.LongTimePattern properties separated by a space. This dynamic assignment occurs under the following conditions:

This property is affected if the value of the DateTimeFormatInfo.Calendar property changes.

Requirements

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