HeaderPane
Main
Hide
Share Link
Print

CalendarType Property, SftCalendar Object

Defines the calendar system used by the culture.

Syntax

Get

C#SftDateCalendarTypeConstants Type = object.CalendarType;
VB.NETType = object.CalendarType As SftDateCalendarTypeConstants
C++enum SftDateCalendarTypeConstants Type = object->CalendarType;
enum SftDateCalendarTypeConstants Type = object->GetCalendarType();
CHRESULT object->get_CalendarType(enum SftDateCalendarTypeConstants* Type);

Put

C#SftDateCalendarTypeConstants object.CalendarType = Type;
VB.NETobject.CalendarType = Type As SftDateCalendarTypeConstants
C++enum SftDateCalendarTypeConstants object->CalendarType = Type;
void object->PutCalendarType(enum SftDateCalendarTypeConstants Type);
CHRESULT object->put_CalendarType(enum SftDateCalendarTypeConstants Type);

object

A SftCalendar object.

Type

Defines the calendar system used by the culture.

NameValueDescription
calendarSftDateDefault0The culture's default calendar
calendarSftDateGregorian1Gregorian (localized)
calendarSftDateGregorianUS2Gregorian (U.S. English)
calendarSftDateJapanese3Japanese Emperor era
calendarSftDateTaiwan4Taiwan
calendarSftDateKorean5Korean Tangun era
calendarSftDateHijri6Hijri (Arabic lunar)
calendarSftDateThai7Thai Buddhist
calendarSftDateHebrew8Hebrew (lunar)
calendarSftDateGregorianMEFrench9Gregorian (Middle East French)
calendarSftDateGregorianArabic10Gregorian (Arabic)
calendarSftDateGregorianXlitEnglish11Gregorian (transliterated English)
calendarSftDateGregorianXlitFrench12Gregorian (transliterated French)
calendarSftDatePersian22Persian
calendarSftDateUmAlQura23Um Al Qura (Saudi Arabia)

Comments

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


Last Updated 11/29/2026 - (email)
© 2026 Softel vdm, Inc.