DateTimeExtensions.Between

Returns true if the date is between or equal to one of the two values.

public static bool Between(DateTime date, DateTime startDate, 
			DateTime endDate)

Parameters

date
DateTime Base, from where the calculation will be preformed.

startDate
endDate