DateTimeComparisonExtensions extension
- on
Methods
-
isFuture(
) → bool -
Available on DateTime, provided by the DateTimeComparisonExtensions extension
Checks if the given DateTime is in the future relative to the current moment (DateTime.now()). -
isPast(
) → bool -
Available on DateTime, provided by the DateTimeComparisonExtensions extension
Checks if the given DateTime is in the past relative to the current moment (DateTime.now()). -
isToday(
) → bool -
Available on DateTime, provided by the DateTimeComparisonExtensions extension
Checks if the current DateTime provided is the same calendar day as today. -
isTomorrow(
) → bool -
Available on DateTime, provided by the DateTimeComparisonExtensions extension
Checks if the current DateTime provided is tomorrow. -
isYesterday(
) → bool -
Available on DateTime, provided by the DateTimeComparisonExtensions extension
Checks if the current DateTime provided was yesterday.