SQL Function Reference

YEAR
Returns the year for a specified date
MySQL
YEAR(datetime)
Examples
MySQL
SELECT YEAR("2022-06-16");