YEAR

Get the year from a date.

Parameter List

Syntax
YEAR(date)
date

The date to return the year from. For example: "2019-06-29".

Examples

YEAR("2018-11-22") returns 2018