class ISOWeek
in global :: System . Globalization
Provides static members to support the ISO week date that is part of the ISO 8601 date and time standard issued by the International Organization for Standardization (ISO).
public static int GetWeekOfYear( DateTime date )
Calculates the ISO week number of a given Gregorian date.
dateA date in the Gregorian calendar.- Returns A number between 1 and 53 represnting the ISO week number of the given Gregorian date.
public static int GetWeeksInYear( int year )
calculates the number of weeks in a given ISO week-numbering year.
yearAn ISO week-numbering year (also called an ISO year informally).- Returns The number of ISO weeks in the year. Returns either 52 or 53.
public static int GetYear( DateTime date )
Calculates the ISO week-numbering year (also called ISO year informally) mapped to the input Gregorian date.
dateA date in the Gregorian calendar.- Returns The ISO week-numbering year, between 1 and 9999
public static DateTime GetYearEnd( int year )
Calculates the Gregorian date at which the week-numbering year will end.
yearAn ISO week-numbering year (also called an ISO year informally).- Returns The Gregorian date at which the week-numbering year will end.
public static DateTime GetYearStart( int year )
Calculates the Gregorian date at which the week-numbering year will start.
yearAn ISO week-numbering year (also called an ISO year informally).- Returns The Gregorian date at which the week-numbering year will start.
public static DateTime ToDateTime( int year, int week, DayOfWeek dayOfWeek )
Maps the ISO week date represented by a specified ISO year, week number, and day of week to the equivalent Gregorian date.
yearAn ISO week-numbering year (also called an ISO year informally).weekThe ISO week number in the given ISO week-numbering year.dayOfWeekThe day of week inside the given ISO week.- Returns The Gregorian date equivalent to the input ISO week date.
public Type GetType( )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.