Skip to content

Returns the year and week number for a date as an integer.

func.yearweek(<date>[, <mode>])
func.yearweek('2024-06-15')
┌────────┐
202424
└────────┘
YEARWEEK(<date>[, <mode>])
SELECT YEARWEEK('2024-06-15');
┌────────┐
202424
└────────┘