Iso8601Utils.GetWeekNumber method
Version 1.1.28
.NET Framework 4.8
Namespace | Skybrud.Essentials.Time.Iso8601 |
---|---|
Assembly | Skybrud.Essentials.dll |
GetWeekNumber(DateTime)
Static
Gets the week number of date
according to the ISO 8601 specification.
public static int GetWeekNumber(DateTime date)
Parameters
date
DateTime
The date.
Returns
The ISO 8601 week number.
GetWeekNumber(DateTimeOffset)
Static
Gets the week number of date
according to the ISO 8601 specification.
public static int GetWeekNumber(DateTimeOffset date)
Parameters
date
DateTimeOffset
The date.
Returns
The ISO 8601 week number.