Skip to content

Returns the year from a date.

func.year(<date>)
func.year('2024-06-15')
┌──────┐
2024
└──────┘
YEAR(<date>)
SELECT YEAR('2024-06-15');
┌──────┐
2024
└──────┘