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 version | SDK version | Value added |
|---|---|---|
| 1607 | 14393 | ChineseLunar |
| 1607 | 14393 | JapaneseLunar |
| 1607 | 14393 | KoreanLunar |
| 1607 | 14393 | TaiwanLunar |
| 1607 | 14393 | VietnameseLunar |
-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)