Defines the calendar system used by the culture.
Get
| C# | SftDateCalendarTypeConstants Type = object.CalendarType; |
| VB.NET | Type = object.CalendarType As SftDateCalendarTypeConstants |
| C++ | enum SftDateCalendarTypeConstants Type = object->CalendarType; enum SftDateCalendarTypeConstants Type = object->GetCalendarType(); |
| C | HRESULT object->get_CalendarType(enum SftDateCalendarTypeConstants* Type); |
Put
| C# | SftDateCalendarTypeConstants object.CalendarType = Type; |
| VB.NET | object.CalendarType = Type As SftDateCalendarTypeConstants |
| C++ | enum SftDateCalendarTypeConstants object->CalendarType = Type; void object->PutCalendarType(enum SftDateCalendarTypeConstants Type); |
| C | HRESULT object->put_CalendarType(enum SftDateCalendarTypeConstants Type); |
object
Type
Defines the calendar system used by the culture.
| Name | Value | Description |
|---|---|---|
| calendarSftDateDefault | 0 | The culture's default calendar |
| calendarSftDateGregorian | 1 | Gregorian (localized) |
| calendarSftDateGregorianUS | 2 | Gregorian (U.S. English) |
| calendarSftDateJapanese | 3 | Japanese Emperor era |
| calendarSftDateTaiwan | 4 | Taiwan |
| calendarSftDateKorean | 5 | Korean Tangun era |
| calendarSftDateHijri | 6 | Hijri (Arabic lunar) |
| calendarSftDateThai | 7 | Thai Buddhist |
| calendarSftDateHebrew | 8 | Hebrew (lunar) |
| calendarSftDateGregorianMEFrench | 9 | Gregorian (Middle East French) |
| calendarSftDateGregorianArabic | 10 | Gregorian (Arabic) |
| calendarSftDateGregorianXlitEnglish | 11 | Gregorian (transliterated English) |
| calendarSftDateGregorianXlitFrench | 12 | Gregorian (transliterated French) |
| calendarSftDatePersian | 22 | Persian |
| calendarSftDateUmAlQura | 23 | Um Al Qura (Saudi Arabia) |
The CalendarType property defines the calendar system of the culture (Culture) in which the control shows and edits dates. The default is calendarSftDateDefault, the default calendar of the locale. p The supported calendar systems are Gregorian (in several variants), Japanese, Taiwan, Korean, Thai, Hijri, Um Al Qura, Hebrew and Persian. The GetOptionalCalendars method returns the calendar systems a locale offers. If the default calendar of a locale is not supported, the Gregorian calendar is used. p Dates passed to and returned by the control are always Gregorian dates (Date values), regardless of the calendar system shown.
See Also SftCalendar Object | Object Hierarchy | Cultures and Calendars