Skip to content

Add cross-links between Calendar.ChangeCalendarSystem and CalendarIdentifiers pages #2495

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: docs
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Sets a new calendar system to be used by this [Calendar](calendar.md) object.

## -parameters
### -param value
The calendar identifier to use.
The calendar identifier to use. This can be any identifier from the [CalendarIdentifiers](calendaridentifiers.md) class.

## -remarks

Expand Down
13 changes: 11 additions & 2 deletions windows.globalization/calendaridentifiers.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,16 @@ Contains the calendar identifiers for the supported calendars, as static propert
| 1607 | 14393 | VietnameseLunar |

## -examples

Using the [Windows.Globalization.Calendar](calendar.md) API,
```
winrt::Windows::Globalization::Calendar calendar;
calendar.ChangeCalendarSystem(winrt::Windows::Globalization::CalendarIdentifiers::Gregorian);
...
// Perform some Gregorian-dependent calculations
...
calendar.ChangeCalendarSystem(winrt::Windows::Globalization::CalendarIdentifiers::Hebrew);
// Perform Hebrew calendar calculations
```
## -see-also

[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)
[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),