...

monthNum

monthNum(d: date) 🡒 number, const pure function

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

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

See also

User Contributed Notes
0 notes + add a note