Click or drag to resize
ValidationHelperIsIntervalValid Method
Returns true if fromDate precedes toDate.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static bool IsIntervalValid(
	DateTime fromDate,
	DateTime toDate,
	bool nullFriendly
)

Parameters

fromDate
Type: SystemDateTime
Start time
toDate
Type: SystemDateTime
End time
nullFriendly
Type: SystemBoolean
Tolerate nil dates

Return Value

Type: Boolean
See Also