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) String

Available on DateTime, provided by the DateTimeExtensions extension

Returns a string representation of this date with the format provided as a 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.