DateTimeExtension extension
datetime extension functions
- on
Methods
-
addDay(
int days) → DateTime -
addMonth(
DateTime dateTime, int months) → DateTime -
addYear(
DateTime dateTime, int years) → DateTime -
difference(
DateTime firstDate, DateTime afterDate) → Duration -
firstDateOfMonth(
) → DateTime -
format(
[String format = "${DateFormats.DD_MM_YYYY} ${TimeFormats.hh_mm_ss_a}"]) → String -
lastDateOfMonth(
) → DateTime -
subtractDay(
int days) → DateTime -
subtractMonth(
DateTime dateTime, int months) → DateTime -
subtractYear(
DateTime dateTime, int years) → DateTime -
toSqlDateFormat(
) → String -
toSqlDateTimeFormat(
) → String -
toSqlEndDateTimeFormat(
) → String -
toSqlStartDateTimeFormat(
) → String