DateExtension extension
- on
Properties
- isCurrentMonth → bool
-
Available on DateTime, provided by the DateExtension extension
Chech ifthismonth is the current monthno setter - isFutureDay → bool
-
Available on DateTime, provided by the DateExtension extension
Chech ifthisis a day in the future (after today)no setter - isPastDay → bool
-
Available on DateTime, provided by the DateExtension extension
Chech ifthisis a day in the past (before today)no setter - isToday → bool
-
Available on DateTime, provided by the DateExtension extension
Check ifthisis same day as todayno setter - isTomorrow → bool
-
Available on DateTime, provided by the DateExtension extension
Chech ifthisis tomorrow (one day in the future)no setter - isWeekend → bool
-
Available on DateTime, provided by the DateExtension extension
Check ifthisis a day in the weekend (saturday or sunday)no setter - isYesterday → bool
-
Available on DateTime, provided by the DateExtension extension
Chech ifthisis yesterday (one day in the past)no setter
Methods
-
getDateOnly(
{bool withDay = true}) → DateTime -
Available on DateTime, provided by the DateExtension extension
Returns a DateTime with the same date asthisbut no reference to time -
isDateAfter(
DateTime date) → bool -
Available on DateTime, provided by the DateExtension extension
Check ifthisis after thandate(without reference to Time) -
isDateBefore(
DateTime date) → bool -
Available on DateTime, provided by the DateExtension extension
Check ifthisis before thandate(without reference to Time) -
isSameDay(
DateTime date) → bool -
Available on DateTime, provided by the DateExtension extension
Chech ifthisis the same date thenother(without reference to Time) -
monthsDiffrenceTo(
DateTime date) → int -
Available on DateTime, provided by the DateExtension extension
Calculates the difference in months betweenthisdate andother.