Important
New database features are no longer connected to engine versions; features are now enabled independently during scheduled update windows, and “major” and “minor” releases no longer exist in Helios. Please visit the release notes to view the latest features available in your database clusters.
DAYOFWEEK
On this page
The DAYOFWEEK() function extracts the day of the week from a date.
Syntax
DAYOFWEEK (dateobj)Arguments
-
dateobj: a valid date, datetime, or parsable date string.
Return Type
Integer.
Examples
SELECT DAYOFWEEK('2014-04-18');
+-------------------------+
| DAYOFWEEK('2014-04-18') |
+-------------------------+
| 6 |
+-------------------------+Last modified: