GregorianCalendarTypes Enumeration

GregorianCalendarTypes Enumeration

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Defines the different language versions of the Gregorian calendar.

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

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

Member nameDescription
ArabicRefers to the Arabic version of the Gregorian calendar.
LocalizedRefers to the localized version of the Gregorian calendar, based on the language of the CultureInfo object that uses the DateTimeFormatInfo object.
MiddleEastFrenchRefers to the Middle East French version of the Gregorian calendar.
TransliteratedEnglishRefers to the transliterated English version of the Gregorian calendar.
TransliteratedFrenchRefers to the transliterated French version of the Gregorian calendar.
USEnglishRefers to the U.S. English version of the Gregorian calendar.

The date and time patterns associated with the GregorianCalendar vary depending on the culture. If the value of the CultureInfo::Calendar property of a particular culture is GregorianCalendar, or if the value of one of the calendars in a culture’s CultureInfo::OptionalCalendars property array is GregorianCalendar, that object’s GregorianCalendar::CalendarType property is a GregorianCalendarTypes enumeration value that specifies which date and time patterns that culture uses.

For example, most of the Arabic cultures support the following versions of the Gregorian calendar:

A culture that supports GregorianCalendar might not support all language versions of GregorianCalendar. The CultureInfo::Calendar and CultureInfo::OptionalCalendars properties specify the calendars supported by that culture. If GregorianCalendar is supported, CalendarType can be used to determine which language versions of GregorianCalendar are supported.

The following example demonstrates how to determine the GregorianCalendar language version supported by the culture.

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

The following example displays a DateTime value using a localized GregorianCalendar object.

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft