Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.