Noda Time
Previous Method (targetDayOfWeek)
NamespacesNodaTimeLocalDateTimePrevious(IsoDayOfWeek)

[This is preliminary documentation and is subject to change.]

Returns the previous LocalDateTime falling on the specified IsoDayOfWeek, at the same time of day as this value. This is a strict "previous" - if this value on already falls on the target day of the week, the returned value will be a week earlier.
Declaration Syntax
C#Visual BasicVisual C++
public LocalDateTime Previous(
	IsoDayOfWeek targetDayOfWeek
)
Public Function Previous ( _
	targetDayOfWeek As IsoDayOfWeek _
) As LocalDateTime
public:
LocalDateTime Previous(
	IsoDayOfWeek targetDayOfWeek
)
Parameters
targetDayOfWeek (IsoDayOfWeek)
The ISO day of the week to return the previous date of.
Return Value
The previous LocalDateTime falling on the specified day of the week.
Exceptions
ExceptionCondition
InvalidOperationExceptionThe underlying calendar doesn't use ISO days of the week.
ArgumentOutOfRangeExceptiontargetDayOfWeek is not a valid day of the week (Monday to Sunday).

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