Skip to content

Commit d203cf7

Browse files
ffesRon Petrusha
authored andcommitted
Add reference to ISOWeek (#2120)
* Add reference to `ISOWeek` * Commit suggestions Co-Authored-By: ffes <[email protected]> * Fixed xrefs.
1 parent 4bbd02b commit d203cf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Globalization/CalendarWeekRule.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
[!code-vb[System.Globalization.CalendarWeekRule#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.globalization.calendarweekrule/vb/calendarweekruleex.vb#1)]
8989
9090
> [!NOTE]
91-
> 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).
91+
> 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.
9292
9393
Each <xref:System.Globalization.CultureInfo> object supports a set of calendars. The <xref:System.Globalization.CultureInfo.Calendar%2A> property returns the default calendar for the culture, and the <xref:System.Globalization.CultureInfo.OptionalCalendars%2A> property returns an array containing all the calendars supported by the culture. To change the calendar used by a <xref:System.Globalization.CultureInfo>, the application should set the <xref:System.Globalization.DateTimeFormatInfo.Calendar%2A> property of <xref:System.Globalization.CultureInfo.DateTimeFormat%2A?displayProperty=nameWithType> to a new <xref:System.Globalization.CalendarWeekRule.FirstFourDayWeek?displayProperty=nameWithType>.
9494
@@ -210,4 +210,4 @@
210210
</Docs>
211211
</Member>
212212
</Members>
213-
</Type>
213+
</Type>

0 commit comments

Comments
 (0)