optionalCalendarType
Type: Integer
The optionalCalendarType property of the DateFormat class contains the optional calendar type that is available for the locale.
The calendar type can be one of the values listed in the following table.
Value | Class Constant | Description |
---|---|---|
0 | None | No additional calendar types |
1 | Gregorian | Gregorian (localized) |
2 | EnglishGregorian | Gregorian (always English strings) |
3 | JapaneseEra | Japanese era (Year of the Emperor) |
4 | ChineseEra | Year of the Republic of China |
5 | KoreanEra | Tangun era (Korea) |
6 | Hijri | Hijri |
7 | Thai | Thai |