Check if a date is between two dates

Namespace:  Devolutions.Utils
Assembly:  Devolutions.Utils (in Devolutions.Utils.dll)

Syntax

Visual Basic
Public Shared Function IsBetween ( _
	minInterval As DateTime, _
	maxInterval As DateTime, _
	value As DateTime, _
	includeMinMax As Boolean _
) As Boolean
C#
public static bool IsBetween(
	DateTime minInterval,
	DateTime maxInterval,
	DateTime value,
	bool includeMinMax
)

Parameters

minInterval
Type: System..::..DateTime
maxInterval
Type: System..::..DateTime
value
Type: System..::..DateTime
includeMinMax
Type: System..::..Boolean

Return Value

See Also