top of page
CerebroSQL

DAYOFWEEK

Database: MySQL

68747470733a2f2f7374796c65732e7265646469746d656469612e636f6d2f74355f32716d366b2f7374796c65

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