Type of issue
Code doesn't work
Description
In the second code example under Calendars and cultures, the example output doesn't match what I see when I run the code on my computer.
The documentation shows:
// The example displays the following output:
// Current Culture: en-US
// Current Calendar: System.Globalization.GregorianCalendar
// 6/20/2011
//
// Current Culture: ar-SA
// Current Calendar: System.Globalization.UmAlQuraCalendar
// 18/07/32
//
// Current Culture: ar-SA
// Current Calendar: System.Globalization.HijriCalendar
// 19/07/32
But when I run the code locally I see:
Current Culture: en-US
Current Calendar: System.Globalization.GregorianCalendar
6/20/2011
Current Culture: ar-SA
Current Calendar: System.Globalization.UmAlQuraCalendar
18??/7??/1432 ??? ??????
Current Culture: ar-SA
Current Calendar: System.Globalization.HijriCalendar
19??/7??/1432 ??? ??????
Notice the second two date formats have question marks when run on my computer.
Page URL
https://learn.microsoft.com/en-us/dotnet/standard/datetime/working-with-calendars
Content source URL
https://github.com/dotnet/docs/blob/main/docs/standard/datetime/working-with-calendars.md
Document Version Independent Id
61afd4f7-9445-ef3e-3061-9b4dc71aae6e
Platform Id
1ad10867-800f-f982-0668-856ead9c6f74
Article author
@adegeo
Metadata
- ID: 6585f784-ab83-1a98-acc0-a25351702686
- PlatformId: 1ad10867-800f-f982-0668-856ead9c6f74
- Service: dotnet-fundamentals
Related Issues
Type of issue
Code doesn't work
Description
In the second code example under Calendars and cultures, the example output doesn't match what I see when I run the code on my computer.
The documentation shows:
But when I run the code locally I see:
Notice the second two date formats have question marks when run on my computer.
Page URL
https://learn.microsoft.com/en-us/dotnet/standard/datetime/working-with-calendars
Content source URL
https://github.com/dotnet/docs/blob/main/docs/standard/datetime/working-with-calendars.md
Document Version Independent Id
61afd4f7-9445-ef3e-3061-9b4dc71aae6e
Platform Id
1ad10867-800f-f982-0668-856ead9c6f74
Article author
@adegeo
Metadata
Related Issues