CultureInfo.OptionalCalendars Property

 

Gets the list of calendars that can be used by the culture.

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

abstract OptionalCalendars : Calendar[] with get
override OptionalCalendars : Calendar[] with get

Property Value

Type: System.Globalization.Calendar[]

An array of type Calendar that represents the calendars that can be used by the culture represented by the current CultureInfo.

Your application changes the calendar used by the current CultureInfo by setting the Calendar property of DateTimeFormat, which is an instance of the DateTimeFormatInfo class. The new calendar must be one of the calendars listed in OptionalCalendars. DateTimeFormat also includes other properties that customize the date and time formatting associated with that Calendar.

The following code example demonstrates how to determine the GregorianCalendar versions supported by the culture.

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

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