endOfLastMonth method

DateTime endOfLastMonth()

Returns a new DateTime of same timezone

Implementation

DateTime endOfLastMonth() =>
    DateTimeConstructors.withTimezone(isUtc, year, month - 1).endOfMonth();