Class DayOfWeekExtensions
Extension methods for DayOfWeek.
Since 2.0.x
Availability net6.0, net8.0, netstandard2.0
Inherited Members
Namespace: NodaTime.Extensions
Assembly: NodaTime.dll
Syntax
public static class DayOfWeekExtensions
Methods
ToIsoDayOfWeek(DayOfWeek)
Converts a DayOfWeek into the corresponding IsoDayOfWeek.
Since 2.0.x
Availability net6.0, net8.0, netstandard2.0
Declaration
public static IsoDayOfWeek ToIsoDayOfWeek(this DayOfWeek dayOfWeek)
Parameters
Type | Name | Description |
---|---|---|
DayOfWeek | dayOfWeek | The DayOfWeek to convert. |
Returns
Type | Description |
---|---|
IsoDayOfWeek | The IsoDayOfWeek equivalent to dayOfWeek |
Remarks
This is a convenience method which calls ToIsoDayOfWeek(DayOfWeek).