System.Globalization.GregorianCalendarTypes Enumeration

Defines the different language versions of the Gregorian calendar.

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public enum GregorianCalendarTypes

Remarks

The date and time patterns associated with the System.Globalization.GregorianCalendar vary depending on the language. If the System.Globalization.GregorianCalendar is selected in DateTimeFormatInfo.Calendar, System.Globalization.GregorianCalendarTypes can be used to specify which date and time patterns to use in that System.Globalization.DateTimeFormatInfo.

For Arabic cultures, more language versions of the Gregorian calendar are available. For example, you can use the French version of System.Globalization.GregorianCalendar using the GregorianCalendarTypes.MiddleEastFrench value.

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

Members

Member NameDescription
Arabic

Refers to the Arabic version of the Gregorian calendar.

Localized

Refers to the localized version of the Gregorian calendar, based on the language of the System.Globalization.CultureInfo that uses the System.Globalization.DateTimeFormatInfo.

MiddleEastFrench

Refers to the Middle East French 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.

USEnglish

Refers to the U.S. English version of the Gregorian calendar.

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0