monthstart

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

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

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

See also