DateTimeOffsetExtensions.GetIso8601WeekNumber method

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

GetIso8601WeekNumber(DateTimeOffset)

Extension method

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

public static int GetIso8601WeekNumber(this DateTimeOffset date)

Parameters

An instance of DateTimeOffset representing the date.

Returns

int

An instance of int representing the ISO 8601 week number.