previousMonth property

date get previousMonth

Returns the previous month.

Implementation

date get previousMonth => DateTime(year, month - 1, day.clampMax(DateUtils.lastDayOfMonth(month - 1, year)));