ExtDate extension

on

Properties

isToday bool

Available on DateTime, provided by the ExtDate extension

Returns true if this date represents today.
no setter
week List<DateTime>

Available on DateTime, provided by the ExtDate extension

Returns the start and end dates of the current week.
no setter

Methods

ago({String locale = "en"}) String

Available on DateTime, provided by the ExtDate extension

Returns a human-readable relative time string.
format({String pattern = "dd MMM yyyy", String? locale}) String

Available on DateTime, provided by the ExtDate extension

Formats this date using the given pattern and locale.
formatMY([bool fullMonth = true]) String

Available on DateTime, provided by the ExtDate extension

Formats this date as "Month Year".
isSameDate(DateTime dateTime) bool

Available on DateTime, provided by the ExtDate extension

Checks whether this date has the same day and month as the given dateTime.
isSameDay(DateTime other) bool

Available on DateTime, provided by the ExtDate extension

Checks whether this date occurs on the same calendar day as other, including year.