CalendarIdentifiers.Thai | thai property

Applies to Windows and Windows Phone

Gets the identifier for the Thai calendar.

Syntax


Public Shared ReadOnly Property Thai As String

Property value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The string "ThaiCalendar", which is the identifier for the Thai calendar.

Remarks

The Thai calendar works exactly like the Gregorian calendar, except that the year and era are different.

The Thai calendar system recognizes only the current era.

Leap years in the Thai calendar correspond to the same leap years in the Gregorian calendar. A leap year in the Gregorian calendar is defined as a Gregorian year that is evenly divisible by four, except if it is divisible by 100. However, Gregorian years that are divisible by 400 are leap years. A common year has 365 days and a leap year has 366 days. The Thai calendar has 12 months with 28 to 31 days each:

MonthAsNumericString MonthDays in common yearsDays in leap years
1มกราคม (January)3131
2กุมภาพันธ์ (February)2829
3มีนาคม (March)3131
4เมษายน (April)3030
5พฤษภาคม (May)3131
6มิถุนายน (June)3030
7กรกฎาคม (July)3131
8สิงหาคม (August)3131
9กันยายน (September)3030
10ตุลาคม (October)3131
11พฤศจิกายน (November)3030
12ธันวาคม (December)3131

 

February has 29 days during leap years and 28 during common years.

The date January 1, 2012 A.D. in the Gregorian calendar is equivalent to the first day of January in the year 2555 of the current era in the Thai calendar.

Because the Thai calendar corresponds to the Gregorian calendar, Thai calendar strings for day of the week names and month names are localized for all supported locales and hence will appear in the language corresponding to the ResolvedLanguage property of the calendar object.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Globalization
Windows::Globalization [C++]

Metadata

Windows.winmd

See also

CalendarIdentifiers
ResolvedLanguage

 

 

Show:
© 2014 Microsoft