DateTimeExtensions..::..IsInRange Method

Determines whether [is in range] [the specified begin date]. var monday = DateTime.Now.ThisWeekMonday(); var friday = DateTime.Now.ThisWeekFriday(); if(DateTime.Now.IsInRange(monday, friday) { ...do something... }

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

Syntax


public static bool IsInRange(
	DateTime currentDate,
	DateTime beginDate,
	DateTime endDate
)

Parameters

currentDate
Type: DateTime
The current date.
beginDate
Type: DateTime
The begin date.
endDate
Type: DateTime
The end date.

Return Value

true if [is in range] [the specified begin date]; otherwise, false.