DateTimeExtensions.GetIso8601WeekNumber method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Time.Extensions
Assembly Skybrud.Essentials.dll

GetIso8601WeekNumber(DateTime)

Extension method

Gets the week number of the specified date according to the ISO 8601 specification.

public static int GetIso8601WeekNumber(this DateTime date)

Parameters

date DateTime

An instance of DateTime representing the date.

Returns

int

An instance of int representing the ISO 8601 week number.