[This is preliminary documentation and is subject to change.]
Converts from the BCL DayOfWeek enum to the equivalent Noda Time IsoDayOfWeek value.
Other than Sunday, the BCL and ISO values are the same - but ISO 8601 defines
Sunday as day 7, and the BCL defines it as day 0.

C# | Visual Basic | Visual C++ |
public static IsoDayOfWeek ToIsoDayOfWeek( DayOfWeek dayOfWeek )
Public Shared Function ToIsoDayOfWeek ( _ dayOfWeek As DayOfWeek _ ) As IsoDayOfWeek
public: static IsoDayOfWeek ToIsoDayOfWeek( DayOfWeek dayOfWeek )

- dayOfWeek (DayOfWeek)
- ISO day of week value to convert.

The BCL day of week value equivalent to the one passed in.

Exception | Condition |
---|---|
ArgumentOutOfRangeException | The dayOfWeek parameter
is not a valid day of the week. |
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)