FlowWright.cDevDeAPI Namespace
FlowWright.cDevDecisionEngine Namespace

clsDateTimeExt..::..LastDayOfWeek Method

Retrieves the last day of the week that occourred since date.

Namespace:  System
Assembly:  deDataAccess (in deDataAccess.dll)

Syntax


public static DateTime LastDayOfWeek(
	DateTime date,
	DayOfWeek dayOfweek
)
Public Shared Function LastDayOfWeek ( _
	date As DateTime, _
	dayOfweek As DayOfWeek _
) As DateTime
public:
static DateTime^ LastDayOfWeek(
	DateTime^ date, 
	DayOfWeek^ dayOfweek
)

Parameters

date
Type: DateTime
A date.
dayOfweek
Type: DayOfWeek
The kind of DayOfWeek we want to get.

Return Value

A DateTime representing the last day of the week that occourred.

Remarks


If date.DayOfWeek is already dayOfweek, it will return the last one (seven days before)