Skip to content

Returns the week number of the year for a date.

func.week(<date>[, <mode>])
func.week('2024-06-15')
┌────┐
24
└────┘
WEEK(<date>[, <mode>])
SELECT WEEK('2024-06-15');
┌────┐
24
└────┘