FlowWright.cDevDeAPI Namespace
FlowWright.cDevDecisionEngine Namespace

clsDateTimeExt..::..NextDayOfWeek Method

Retrieves the next day of the week that will occour after date.

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

Syntax


public static DateTime NextDayOfWeek(
	DateTime date,
	DayOfWeek dayOfweek
)
Public Shared Function NextDayOfWeek ( _
	date As DateTime, _
	dayOfweek As DayOfWeek _
) As DateTime
public:
static DateTime^ NextDayOfWeek(
	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 next day of the week that will occour after.

Remarks


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