Share via


DayNames Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets or sets a one-dimensional string array that contains the culture-specific full names of the days of the week.

Namespace:  System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public ReadOnly Property DayNames As String()
public string[] DayNames { get; }
public:
property array<String^>^ DayNames {
    array<String^>^ get ();
}
member DayNames : string[] with get
function get DayNames () : String[]

Property Value

Type: array<System. . :: . .String> [] () [] []
A one-dimensional string array that contains the culture-specific full names of the days of the week. The array for InvariantInfo contains "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", and "Saturday".

Remarks

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

If a custom format string includes the "dddd" format specifier, the DateTime..::..ToString method includes the value of the appropriate DayNames member in place of "dddd" in the result string.

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

.NET Framework Security

See Also

Reference

DateTimeFormatInfo Class

System.Globalization Namespace