Windows.Globalization.CalendarIdentifiers

December 18, 2025 ยท View on GitHub

-description

Contains the calendar identifiers for the supported calendars, as static properties.

-remarks

Version history

Windows versionSDK versionValue added
160714393ChineseLunar
160714393JapaneseLunar
160714393KoreanLunar
160714393TaiwanLunar
160714393VietnameseLunar

-examples

The following example shows how to specify a Calendar system using the ChangeCalendarSystem method.

winrt::Windows::Globalization::Calendar calendar;
calendar.ChangeCalendarSystem(winrt::Windows::Globalization::CalendarIdentifiers::Gregorian);
// Perform Gregorian calendar calculations.
...

calendar.ChangeCalendarSystem(winrt::Windows::Globalization::CalendarIdentifiers::Hebrew);
// Perform Hebrew calendar calculations.
...

-see-also

Date and time formatting sample (Windows 10), Calendar sample (Windows 10)