lastDayOfMonth method
Create a new last date of this month.
Implementation
DateTime lastDayOfMonth() {
final nextMonth = this.firstDayOfMonth().nextMonth();
return nextMonth.subtract(Duration(days: 1));
}
Create a new last date of this month.
DateTime lastDayOfMonth() {
final nextMonth = this.firstDayOfMonth().nextMonth();
return nextMonth.subtract(Duration(days: 1));
}