DateTimeExt extension

on

Properties

endOfDay DateTime

Available on DateTime, provided by the DateTimeExt extension

Returns a new DateTime instance representing the end of the day (23:59:59.999).
no setter
isFuture bool

Available on DateTime, provided by the DateTimeExt extension

Returns true if this DateTime instance is after the current date and time.
no setter
isPast bool

Available on DateTime, provided by the DateTimeExt extension

Returns true if this DateTime instance is before the current date and time.
no setter
isToday bool

Available on DateTime, provided by the DateTimeExt extension

Returns true if given date is today
no setter
isTomorrow bool

Available on DateTime, provided by the DateTimeExt extension

Returns true if given date is tomorrow
no setter
isYesterday bool

Available on DateTime, provided by the DateTimeExt extension

Returns true if given date is yesterday
no setter
startOfDay DateTime

Available on DateTime, provided by the DateTimeExt extension

Returns a new DateTime instance representing the beginning of the day (00:00:00).
no setter
timeAgo String

Available on DateTime, provided by the DateTimeExt extension

Returns Time Ago
no setter

Methods

isSameDay(DateTime other) bool

Available on DateTime, provided by the DateTimeExt extension

Returns true if this DateTime instance is on the same calendar day as the other DateTime.