endOfMonth property

DateTime endOfMonth

Returns the last day of the month in this DateTime.

Implementation

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