YEAR
Returns the year for a given date as a number
Usage
YEAR(date)
Parameters
date |
(Required) The date from which to extract the year |
Examples
Reminders
A text containing a date is not handled as a date. To have an actual date:
- use the
@DATE_QUESTION
to set the variable - use a function that converts to a date:
DATEVALUE(text_date)
- use a function that returns a date:
TODAY()
orDATE(year, month, day)