monthend

monthend(d: date) 🡒 date, const pure function

Returns the last day of the month that contains the date d.

show summary "" a1a3 with
  monthend(date(2019, 12, 28))
  monthend(date(2019, 12, 30))
  monthend(date(2020, 1, 1))

See also