Skip to content

Commit f2dc6d0

Browse files
authored
Add xref
1 parent c0bae34 commit f2dc6d0

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

windows.globalization/calendaridentifiers.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,16 @@ Contains the calendar identifiers for the supported calendars, as static propert
2626
| 1607 | 14393 | VietnameseLunar |
2727

2828
## -examples
29-
29+
Using the [Windows.Globalization.Calendar](calendar.md) API,
30+
```
31+
winrt::Windows::Globalization::Calendar calendar;
32+
calendar.ChangeCalendarSystem(winrt::Windows::Globalization::CalendarIdentifiers::Gregorian);
33+
...
34+
// Perform some Gregorian-dependent calculations
35+
...
36+
calendar.ChangeCalendarSystem(winrt::Windows::Globalization::CalendarIdentifiers::Hebrew);
37+
// Perform Hebrew calendar calculations
38+
```
3039
## -see-also
3140

32-
[Date and time formatting sample (Windows 10)](https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/DateTimeFormatting), [Calendar sample (Windows 10)](https://go.microsoft.com/fwlink/p/?LinkId=624043)
41+
[Date and time formatting sample (Windows 10)](https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/DateTimeFormatting), [Calendar sample (Windows 10)](https://go.microsoft.com/fwlink/p/?LinkId=624043),

0 commit comments

Comments
 (0)