The YEAR() function returns the year of "Date".
The "Date" argument must be of type DATE or DATETIME.
For invalid dates like 0000-00-00 that have a 0000 year part, the function returns 0.
If the value for "Date" is invalid or NULL, the YEAR() function returns NULL. |