TimeUtils.GetIso8601WeekNumber method

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

GetIso8601WeekNumber(DateTime)

Static

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

public static int GetIso8601WeekNumber(DateTime date)

Parameters

date DateTime

The date.

Returns

int

The ISO 8601 week number.

GetIso8601WeekNumber(DateTimeOffset)

Static

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

public static int GetIso8601WeekNumber(DateTimeOffset date)

Parameters

The date.

Returns

int

The ISO 8601 week number.