Skip to content

Returns the day of the week index for a date (1=Sunday, 7=Saturday).

func.dayofweek(<date>)
func.dayofweek('2024-06-15')
┌───┐
7
└───┘
DAYOFWEEK(<date>)
SELECT DAYOFWEEK('2024-06-15');
┌───┐
7
└───┘