lastDayOfMonth method
Returns a new DateTime
in the last day of the given month
Implementation
static DateTime lastDayOfMonth(DateTime month) {
return nextMonth(month).subtract(new Duration(days: 1));
}
Returns a new DateTime
in the last day of the given month
static DateTime lastDayOfMonth(DateTime month) {
return nextMonth(month).subtract(new Duration(days: 1));
}