Returns the 4-digit year from the specified date.
Syntax
year(date)
date
can be any of the following:
- Another function that returns a date.
- A formula column that returns a date.
Examples
- If today is October 1, 2015 the following function returns 2015:
year(today())
- The following function returns 2013:
year(date(2013,01,01))
- If c:"specialDay" is a formula column that specifies October 1, 2015, the following function returns 2015:
year(c:"specialDay")