Function Index

Month

Returns the month component of the given date as a number.

Usage

Month(<date>,<timezone>)

date (required) The date from which to extract the month component.

timezone (optional) Name of IANA timezone to get the date part at, e.g. “America/Los_Angeles”. When calculating a timezone, input dates are treated as UTC.

Examples

Month(Date("2007-08-14"))
  • Returns 8.

More About

Date Functions

Date functions are useful for analyzing date input and extracting individual time components, like year or minute, from date objects.