DAYOFWEEK(date) returns the weekday index for date (1 = Sunday, 2 = Monday, ..., 7 = Saturday). : DAYOFWEEK « Date Time Functions « MySQL Tutorial






mysql>
mysql> SELECT DAYOFWEEK('1998-02-03');
+-------------------------+
| DAYOFWEEK('1998-02-03') |
+-------------------------+
|                       3 |
+-------------------------+
1 row in set (0.00 sec)

mysql>








14.15.DAYOFWEEK
14.15.1.DAYOFWEEK(date) returns the day of the week for a given date, starting with 1=Sunday, 2=Monday, 3=Tuesday, and so on.
14.15.2.DAYOFWEEK(date) returns the weekday index for date (1 = Sunday, 2 = Monday, ..., 7 = Saturday).