endOfMonth property

DateTime endOfMonth

Return the end of the month for this date. The result will be in the local timezone.

Implementation

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