Click or drag to resize
ValidationHelper.IsIntervalValid 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: System.DateTime
Start time
toDate
Type: System.DateTime
End time
nullFriendly
Type: System.Boolean
Tolerate nil dates

Return Value

Type: Boolean
See Also