DateTimeFormatInfo.MonthGenitiveNames Property


Gets or sets a string array of month names associated with the current DateTimeFormatInfo object.

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

member MonthGenitiveNames : string[] with get, set

Property Value

Type: System.String[]

A string array of month names.

Exception Condition

In a set operation, the array is multidimensional or has a length that is not exactly 13.


In a set operation, the array or one of its elements is null.


In a set operation, the current DateTimeFormatInfo object is read-only.

In some languages, a month name that is part of a date appears in the genitive case. For example, a date in the Russian (Russia) or "ru-RU", culture consists of the day number and the genitive month name, such as 1 Января.

When this property is set, the array must be one-dimensional and must have exactly 13 elements. Calendar objects accommodate calendars with 13 months. The first element (the element at index zero) represents the first month of the year defined by the Calendar property.If you set the MonthGenitiveNames property, you must also set the MonthNames property.

The following example demonstrates several methods and properties that specify date and time format patterns, native calendar name, and full and abbreviated month and day names.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top