DateComparisonExtension extension
- on
Properties
- dateOnly → DateTime
-
Available on DateTime, provided by the DateComparisonExtension extension
Provides a DateTime instance with only the date component, excluding time. Example: final date = DateTime().now(); // 26-07-2020 16:54:23 date.dateOnly // 26-07-2020 Useful for date comparisons without time influence.no setter - isFriday → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisis a Friday according to ISO 8601.no setter - isFuture → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Determines ifthisis a future date, without considering time.no setter - isInApril → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisfalls in April.no setter - isInAugust → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisfalls in August.no setter - isInDecember → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisfalls in December.no setter - isInFebruary → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisfalls in February.no setter - isInJanuary → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisfalls in January.no setter - isInJuly → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisfalls in July.no setter - isInJune → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisfalls in June.no setter - isInMarch → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisfalls in March.no setter - isInMay → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisfalls in May.no setter - isInNextMonth → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisfalls in the month following the current month.no setter - isInNextYear → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisfalls in the year after the current year.no setter - isInNovember → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisfalls in November.no setter - isInOctober → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisfalls in October.no setter - isInPreviousMonth → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisfalls in the month preceding the current month.no setter - isInPreviousYear → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisfalls in the year before the current year.no setter - isInSeptember → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisfalls in September.no setter - isMonday → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisis a Monday according to ISO 8601.no setter - isPast → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Determines ifthisis a date in the past, without considering time.no setter - isSaturday → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisis a Saturday according to ISO 8601.no setter - isSunday → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisis a Sunday according to ISO 8601.no setter - isThursday → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisis a Thursday according to ISO 8601.no setter - isTuesday → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisis a Tuesday according to ISO 8601.no setter - isWednesday → bool
-
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisis a Wednesday according to ISO 8601.no setter
Methods
-
addDays(
int days) → DateTime -
Available on DateTime, provided by the DateComparisonExtension extension
-
addMonths(
int months) → DateTime -
Available on DateTime, provided by the DateComparisonExtension extension
-
addYears(
int years) → DateTime -
Available on DateTime, provided by the DateComparisonExtension extension
-
daysInMonth(
int year, int month) → int -
Available on DateTime, provided by the DateComparisonExtension extension
-
fromNow(
) → Duration -
Available on DateTime, provided by the DateComparisonExtension extension
Calculates the time span betweenthisand the current moment. -
isAfterDate(
DateTime other) → bool -
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisis after the date ofother, ignoring time. -
isBeforeDate(
DateTime other) → bool -
Available on DateTime, provided by the DateComparisonExtension extension
Checks ifthisis before the date ofother, ignoring time. -
isLeapYear(
int year) → bool -
Available on DateTime, provided by the DateComparisonExtension extension
-
isSameDate(
DateTime other) → bool -
Available on DateTime, provided by the DateComparisonExtension extension
-
isToday(
) → bool -
Available on DateTime, provided by the DateComparisonExtension extension
-
isTomorrow(
) → bool -
Available on DateTime, provided by the DateComparisonExtension extension
-
now(
) → DateTime -
Available on DateTime, provided by the DateComparisonExtension extension
Shortcut for obtaining the current date and time. -
subtractDays(
int days) → DateTime -
Available on DateTime, provided by the DateComparisonExtension extension
-
subtractMonths(
int months) → DateTime -
Available on DateTime, provided by the DateComparisonExtension extension
-
subtractYears(
int years) → DateTime -
Available on DateTime, provided by the DateComparisonExtension extension
-
wasYesterday(
) → bool -
Available on DateTime, provided by the DateComparisonExtension extension