You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Globalization/Calendar.xml
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2378,7 +2378,10 @@ Only the <xref:System.Globalization.JapaneseCalendar> and the <xref:System.Globa
2378
2378
- The <xref:System.Globalization.DateTimeFormatInfo.FirstDayOfWeek%2A?displayProperty=nameWithType> property contains the default first day of the week that can be used for the `firstDayOfWeek` parameter.
2379
2379
2380
2380
- The <xref:System.Globalization.DateTimeFormatInfo.CalendarWeekRule%2A?displayProperty=nameWithType> property contains the default calendar week rule that can be used for the `rule` parameter.
2381
-
2381
+
2382
+
> [!NOTE]
2383
+
> This does not map exactly to ISO 8601. The differences are discussed in the blog entry [ISO 8601 Week of Year format in Microsoft .NET](https://go.microsoft.com/fwlink/?LinkId=160851). Starting with .NET Core 3.0, <xref:System.Globalization.ISOWeek.GetYear%2A?displayProperty=nameWithType> and <xref:System.Globalization.ISOWeek.GetWeekOfYear%2A?displayProperty=nameWithType> solve this problem.
2384
+
2382
2385
The following example uses the current culture's <xref:System.Globalization.DateTimeFormatInfo> object to determine that January 1, 2011 is in the first week of the year in the Gregorian calendar.
0 commit comments