MonthNames 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 array of type String containing the culture-specific full names of the months.

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

public string[] MonthNames { get; }

Property Value

Type: array<System..::..String>[]()[][]
A one-dimensional array of type String containing the culture-specific full names of the months. In a 12-month calendar, the 13th element of the array is an empty string. The array for InvariantInfo contains "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", and "".

When this property is set, the array must be one-dimensional and must have exactly 13 elements. Calendar objects accommodate calendars with 13 months.

If you set the MonthNames property, you must also set the MonthGenitiveNames property.

If the custom pattern includes the format pattern "MMMM", DateTime..::..ToString displays the value of MonthNames in place of the "MMMM" in the format pattern.

Show: