monthnum

monthnum(d: date) 🡒 number, pure function

Returns the month of the year (1-12) for the date passed as an argument.

Example:

show summary "" a1a3 with
  monthnum(date(2020, 1, 1))
  monthnum(date(2020, 6, 15))
  monthnum(date(2020, 12, 31))

See also