DHUNullableDateExtensions extension

DHUNullableDateExtensions

on

Properties

isInPastWeek bool

Available on DateTime?, provided by the DHUNullableDateExtensions extension

checks isInPastWeek
no setter
isInThisMonth bool

Available on DateTime?, provided by the DHUNullableDateExtensions extension

checks isInThisMonth
no setter
isInThisYear bool

Available on DateTime?, provided by the DHUNullableDateExtensions extension

checks isInThisYear
no setter
isLeapYear bool

Available on DateTime?, provided by the DHUNullableDateExtensions extension

checks isLeapYear
no setter
isPast bool

Available on DateTime?, provided by the DHUNullableDateExtensions extension

checks isPast
no setter
isPresent bool

Available on DateTime?, provided by the DHUNullableDateExtensions extension

checks isPresent
no setter
isToday bool

Available on DateTime?, provided by the DHUNullableDateExtensions extension

return true if the date is today
no setter
isTomorrow bool

Available on DateTime?, provided by the DHUNullableDateExtensions extension

checks isTomorrow
no setter
isYesterday bool

Available on DateTime?, provided by the DHUNullableDateExtensions extension

checks isYesterday
no setter
local DateTime?

Available on DateTime?, provided by the DHUNullableDateExtensions extension

Converts this DateTime to the local time zone.
no setter
passedDays int?

Available on DateTime?, provided by the DHUNullableDateExtensions extension

Returns the number of days passed since this DateTime. Returns a positive number for past dates, and negative for future dates.
no setter
passedDuration Duration?

Available on DateTime?, provided by the DHUNullableDateExtensions extension

checks passedDuration
no setter
remainingDays int?

Available on DateTime?, provided by the DHUNullableDateExtensions extension

Returns the number of days remaining until this DateTime. Returns a positive number for future dates, and negative for past dates.
no setter
remainingDuration Duration?

Available on DateTime?, provided by the DHUNullableDateExtensions extension

checks remainingDuration
no setter
toUtcIso String?

Available on DateTime?, provided by the DHUNullableDateExtensions extension

Converts this DateTime to UTC and returns an ISO 8601 string representation.
no setter

Methods

isBetween(DateTime start, DateTime end, {bool inclusiveStart = true, bool inclusiveEnd = false, bool ignoreTime = false, bool normalize = false}) bool

Available on DateTime?, provided by the DHUNullableDateExtensions extension

Checks if this nullable DateTime falls between two other DateTime objects.