DAYOFWEEK(date) returns the day of the week for a given date, starting with 1=Sunday, 2=Monday, 3=Tuesday, and so on. : DAYOFWEEK : Date Time Functions MySQL TUTORIALS


MySQL TUTORIALS » Date Time Functions » DAYOFWEEK »

 

DAYOFWEEK(date) returns the day of the week for a given date, starting with 1=Sunday, 2=Monday, 3=Tuesday, and so on.


mysql>
mysql> SELECT DAYOFWEEK('0-2-1');
+--------------------+
| DAYOFWEEK('0-2-1') |
+--------------------+
|                  |
+--------------------+
row in set (0.00 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Date Time Functions
» DAYOFWEEK