DateTimeExtensions extension

on

Properties

formatDay → String

Available on DateTime, provided by the DateTimeExtensions extension

Returns a string representation of this date with the format dd.
no setter
formatDayMonthYear → String

Available on DateTime, provided by the DateTimeExtensions extension

Returns a string representation of this date with the format dd-MM-yyyy.
no setter
formatHrMin12 → String

Available on DateTime, provided by the DateTimeExtensions extension

Returns a string representation of this date with the format HH:mm in 12 hour format.
no setter
formatHrMin24 → String

Available on DateTime, provided by the DateTimeExtensions extension

Returns a string representation of this date with the format HH:mm in 24 hour format.
no setter
formatHrMinSec12 → String

Available on DateTime, provided by the DateTimeExtensions extension

Returns a string representation of this date with the format HH:mm in 12 hour format.
no setter
formatHrMinSec24 → String

Available on DateTime, provided by the DateTimeExtensions extension

Returns a string representation of this date with the format HH:mm in 24 hour format.
no setter
formatMonth → String

Available on DateTime, provided by the DateTimeExtensions extension

Returns a string representation of this date with the format MMMM.
no setter
formatYearMonthDay → String

Available on DateTime, provided by the DateTimeExtensions extension

Returns a string representation of this date with the format yyyy-MM-dd.
no setter
formatYearMonthDayHrMin → String

Available on DateTime, provided by the DateTimeExtensions extension

Returns a string representation of this date with the format yyyy-MM-dd HH:mm.
no setter
formatYearMonthDayHrMinSec → String

Available on DateTime, provided by the DateTimeExtensions extension

Returns a string representation of this date with the format yyyy-MM-dd HH:mm:ss.
no setter
fromNow → Duration

Available on DateTime, provided by the DateTimeExtensions extension

Returns the duration between this date and now.
no setter
isFuture → bool

Available on DateTime, provided by the DateTimeExtensions extension

Returns true if this date is in the future.
no setter
isInNextMonth → bool

Available on DateTime, provided by the DateTimeExtensions extension

Returns true if this date is in the next month.
no setter
isInNextYear → bool

Available on DateTime, provided by the DateTimeExtensions extension

Returns true if this date is in the next year.
no setter
isInPreviousMonth → bool

Available on DateTime, provided by the DateTimeExtensions extension

Returns true if this date is in the previous month.
no setter
isInPreviousYear → bool

Available on DateTime, provided by the DateTimeExtensions extension

Returns true if this date is in the previous year.
no setter
isPast → bool

Available on DateTime, provided by the DateTimeExtensions extension

Returns true if this date is in the past.
no setter
isToday → bool

Available on DateTime, provided by the DateTimeExtensions extension

Returns true if this date is today.
no setter
isTomorrow → bool

Available on DateTime, provided by the DateTimeExtensions extension

Returns true if this date is tomorrow.
no setter
isYesterday → bool

Available on DateTime, provided by the DateTimeExtensions extension

Returns true if this date is yesterday.
no setter

Methods

format(String formatStr, {Locale? locale}) → String

Available on DateTime, provided by the DateTimeExtensions extension

Returns a string representation of this date with the format provided as a parameter.
isAfterAndUpBy(DateTime b, {int? byMilliseconds, int? byMicroseconds, int? bySeconds, int? byMinutes, int? byHours, int? byDays}) → bool

Available on DateTime, provided by the DateTimeExtensions extension

Returns true if "this (a)" is after "b" and more by the given parameter.
isAfterBy(DateTime b, {int? byMilliseconds, int? byMicroseconds, int? bySeconds, int? byMinutes, int? byHours, int? byDays}) → bool

Available on DateTime, provided by the DateTimeExtensions extension

Returns true if "this (a)" is after "b" by the given parameter.
isBeforeAndUpBy(DateTime b, {int? byMilliseconds, int? byMicroseconds, int? bySeconds, int? byMinutes, int? byHours, int? byDays}) → bool

Available on DateTime, provided by the DateTimeExtensions extension

Returns true if "this (a)" is before "b" by the given parameter.
isBeforeBy(DateTime b, {int? byMilliseconds, int? byMicroseconds, int? bySeconds, int? byMinutes, int? byHours, int? byDays}) → bool

Available on DateTime, provided by the DateTimeExtensions extension

Returns true if "this (a)" is before "b" by the given parameter.

Operators

operator +(Duration duration) → DateTime

Available on DateTime, provided by the DateTimeExtensions extension

Ads this duration of time to this date and returns the result.
operator -(Duration duration) → DateTime

Available on DateTime, provided by the DateTimeExtensions extension

Subtracts this duration of time from this date and returns the result.