Skip to content

Returns the week of the year for a date. Alias for WEEK.

func.weekofyear(<date>)
func.weekofyear('2024-06-15')
┌────┐
24
└────┘
WEEKOFYEAR(<date>)
SELECT WEEKOFYEAR('2024-06-15');
┌────┐
24
└────┘