Product Solutions Support
Try MemSQL

DAYOFWEEK

Extracts the day of the week from a date. Sunday is 1, Monday is 2, etc.

DAYOFWEEK (dateobj)

Arguments

Return Type

Integer. If dateobj is not a valid date, returns NULL.

Examples

memsql> select dayofweek('2014-04-18');
+-------------------------+
| dayofweek('2014-04-18') |
+-------------------------+
|                       6 |
+-------------------------+
Was this article useful?