Kentico 10 API Reference
Kentico 10 API Reference
Namespaces
CMS.Helpers Namespaces
CMS.Helpers
DateTimeHelper Class
DateTimeHelper Methods
DateTimeToString Method
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: 10.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) 2016 Kentico Software
Send comments on this topic to
support@kentico.com