DateTimeExtensions..::..NextDayOfWeek Method

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

Namespace:  Core
Assembly:  Core (in Core.dll)

Syntax


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)