DateTimeExtensions extension
- on
Properties
- formatDay → String
-
Available on DateTime, provided by the DateTimeExtensions extension
Returns a string representation of this date with the formatdd.no setter - formatDayMonthYear → String
-
Available on DateTime, provided by the DateTimeExtensions extension
Returns a string representation of this date with the formatdd-MM-yyyy.no setter - formatHrMin12 → String
-
Available on DateTime, provided by the DateTimeExtensions extension
Returns a string representation of this date with the formatHH:mmin 12 hour format.no setter - formatHrMin24 → String
-
Available on DateTime, provided by the DateTimeExtensions extension
Returns a string representation of this date with the formatHH:mmin 24 hour format.no setter - formatHrMinSec12 → String
-
Available on DateTime, provided by the DateTimeExtensions extension
Returns a string representation of this date with the formatHH:mmin 12 hour format.no setter - formatHrMinSec24 → String
-
Available on DateTime, provided by the DateTimeExtensions extension
Returns a string representation of this date with the formatHH:mmin 24 hour format.no setter - formatMonth → String
-
Available on DateTime, provided by the DateTimeExtensions extension
Returns a string representation of this date with the formatMMMM.no setter - formatYearMonthDay → String
-
Available on DateTime, provided by the DateTimeExtensions extension
Returns a string representation of this date with the formatyyyy-MM-dd.no setter - formatYearMonthDayHrMin → String
-
Available on DateTime, provided by the DateTimeExtensions extension
Returns a string representation of this date with the formatyyyy-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 formatyyyy-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
Returnstrueif this date is in the future.no setter - isInNextMonth → bool
-
Available on DateTime, provided by the DateTimeExtensions extension
Returnstrueif this date is in the next month.no setter - isInNextYear → bool
-
Available on DateTime, provided by the DateTimeExtensions extension
Returnstrueif this date is in the next year.no setter - isInPreviousMonth → bool
-
Available on DateTime, provided by the DateTimeExtensions extension
Returnstrueif this date is in the previous month.no setter - isInPreviousYear → bool
-
Available on DateTime, provided by the DateTimeExtensions extension
Returnstrueif this date is in the previous year.no setter - isPast → bool
-
Available on DateTime, provided by the DateTimeExtensions extension
Returnstrueif this date is in the past.no setter - isToday → bool
-
Available on DateTime, provided by the DateTimeExtensions extension
Returnstrueif this date is today.no setter - isTomorrow → bool
-
Available on DateTime, provided by the DateTimeExtensions extension
Returnstrueif this date is tomorrow.no setter - isYesterday → bool
-
Available on DateTime, provided by the DateTimeExtensions extension
Returnstrueif 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.