Kentico 12 Service Pack API Reference
Kentico 12 Service Pack API Reference
Namespaces
CMS Namespaces
CMS.Helpers Namespaces
CMS.Helpers
DateTimeHelper Class
DateTimeHelper Methods
GetDayStart Method
GetFirstDayOfWeek Method
GetFormattedValidity Method
GetHourStart Method
GetMinuteStart Method
GetMonthStart Method
GetValidityEnum Method
GetValidityString Method
GetValidTo Method
GetWeekOfYear Method
GetWeekStart Method
GetYearStart Method
IsNowOrToday Method
IsValidFromTo Method
NumberOfWeeks Method
DateTimeHelper
IsValidFromTo Method
Returns true if DateTime "from" is lower than or equal to DateTime "to" or one of them is equal to ZeroTime.
Namespace:
CMS.Helpers
Assembly:
CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
Copy
public
static
bool
IsValidFromTo
(
DateTime
from
,
DateTime
to
)
Parameters
from
Type:
System
DateTime
DateTime From
to
Type:
System
DateTime
DateTime To
Return Value
Type:
Boolean
See Also
Reference
DateTimeHelper Class
CMS.Helpers Namespace
Copyright (c) 2019 Kentico Software
Send comments on this topic to
support@kentico.com