lastDay property

DateTime lastDay

Get last day of YearMonth and convert back to YearMonth

Implementation

DateTime get lastDay => DateTime(year, month + 1, 0);