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)

member 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".

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.

Show: