YEAROF(x)

This function returns the year for a given date (example 2019).