System.Globalization.DateTimeFormatInfo.AbbreviatedDayNames Property

Gets or sets a one-dimensional array of type string containing the culture-specific abbreviated names of the days of the week.

Syntax

public string[] AbbreviatedDayNames { get; set; }

Value

A one-dimensional array of type string containing the culture-specific abbreviated names of the days of the week.

Exceptions

TypeReason
ArgumentNullExceptionThe value specified for a set operation is a null reference.
ArgumentExceptionThe value specified for a set operation is not an array with exactly 7 elements.
InvalidOperationExceptionThe current instance is read-only and a set operation was attempted.

Remarks

If setting this property, the array must be one-dimensional and must have exactly seven elements.

If a custom format string includes the "ddd" format specifier, the DateTime.ToString or DateTimeOffset.ToString method includes the appropriate member of the DateTimeFormatInfo.AbbreviatedDayNames array in place of the "ddd" in the result string.

This property is affected if the value of the DateTimeFormatInfo.Calendar property changes. If the selected DateTimeFormatInfo.Calendar does not support abbreviated day names, the array contains the full day names.

Requirements

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