Category: Date and Time function
This function returns the year, as a four-digit number, from date.
Argument | Type | Description |
---|---|---|
date | Date or Number (date serial) | An expression representing a date. The date value to derive the year number from. |
Return value type: Number
The date argument can take any value or expression that evaluates to a date serial value. Examples include:
year(42097) //Returns 2015 (42097 corresponds to April 4th, 2015.)
year( #2014-01-01) //Returns 2014