Noda Time
ToIsoDayOfWeek Method (dayOfWeek)
NamespacesNodaTime.UtilityBclConversionsToIsoDayOfWeek(DayOfWeek)

[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.
Declaration Syntax
C#Visual BasicVisual C++
public static IsoDayOfWeek ToIsoDayOfWeek(
	DayOfWeek dayOfWeek
)
Public Shared Function ToIsoDayOfWeek ( _
	dayOfWeek As DayOfWeek _
) As IsoDayOfWeek
public:
static IsoDayOfWeek ToIsoDayOfWeek(
	DayOfWeek dayOfWeek
)
Parameters
dayOfWeek (DayOfWeek)
ISO day of week value to convert.
Return Value
The BCL day of week value equivalent to the one passed in.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThe dayOfWeek parameter is not a valid day of the week.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)