endOfMonth property

DateTime get endOfMonth

Returns end of the month (last day 23:59:59.999).

Implementation

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