Function Index

Year

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

Usage

Year(<date Date>,<timezone Text>)

date (required) The date from which to extract the year 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

Year(Date("2007-08-14"))
  • Returns 2007