MySQL tutorial: DAYOFWEEK [EN]
top of page
CerebroSQL

MySQL: 

DAYOFWEEK

Syntax:
DAYOFWEEK(date)

Returns the weekday index for date (1 = Sunday, 2 = Monday, ..., 7 =
Saturday). These index values correspond to the ODBC standard.

Example

mysql> SELECT DAYOFWEEK('2007-02-03');
-> 7

bottom of page