yearEnd

yearEnd(d: date) 🡒 date, pure function

Returns the last day of the Gregorian year associated to the date d.

Example:

show summary "" a1c2 with
  yearEnd(date(2020, 1, 1))
  yearEnd(date(2019, 5, 1))

See also