The DAYOFWEEK() function returns the day of the week of "Date" in the range 1 to 7.
The function follows the ODBC standard: 1 = Sunday, 2 = Monday, 3 = Tuesday, 7 = Saturday.
The "Date" argument must be of type DATE or DATETIME.
For invalid dates like 0000-00-00 that have a 00 day part, the function returns NULL.
If the value for "Date" is invalid or NULL, the DAYOFWEEK() function returns NULL. |