GregorianCalendarTypes Enumeration
Defines the different language versions of the Gregorian calendar.
Assembly: mscorlib (in mscorlib.dll)
| Member name | Description | |
|---|---|---|
![]() | Localized | Refers to the localized version of the Gregorian calendar, based on the language of the CultureInfo that uses the DateTimeFormatInfo. |
![]() | USEnglish | Refers to the U.S. English version of the Gregorian calendar. |
![]() | MiddleEastFrench | Refers to the Middle East French version of the Gregorian calendar. |
![]() | Arabic | Refers to the Arabic version of the Gregorian calendar. |
![]() | TransliteratedEnglish | Refers to the transliterated English version of the Gregorian calendar. |
![]() | TransliteratedFrench | Refers to the transliterated French version of the Gregorian calendar. |
The date and time patterns associated with the GregorianCalendar vary depending on the language. If the GregorianCalendar is selected in DateTimeFormatInfo.Calendar, GregorianCalendarTypes can be used to specify which date and time patterns to use in that DateTimeFormatInfo.
For Arabic cultures, more language versions of the Gregorian calendar are available. For example, you can use the French version of GregorianCalendar using the MiddleEastFrench value.
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 code example demonstrates how to determine the GregorianCalendar language version supported by the culture.
The following code example prints a DateTime using a GregorianCalendar that is localized.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
