ISOWeek.ToDateTime(Int32, Int32, DayOfWeek) Method

Definition

Maps the ISO week date represented by a specified ISO year, week number, and day of week to the equivalent Gregorian date.

C#
public static DateTime ToDateTime(int year, int week, DayOfWeek dayOfWeek);

Parameters

year
Int32

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

week
Int32

The ISO week number in the given ISO week-numbering year.

dayOfWeek
DayOfWeek

The day of week inside the given ISO week.

Returns

The Gregorian date equivalent to the input ISO week date.

Applies to

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