ISOWeek.GetWeeksInYear(Int32) Method

Definition

calculates the number of weeks in a given ISO week-numbering year.

C#
public static int GetWeeksInYear(int year);

Parameters

year
Int32

An ISO week-numbering year (also called an ISO year informally).

Returns

The number of ISO weeks in the year. Returns either 52 or 53.

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1