DAYOFWEEK function (ODBC compatible)
Syntax
DAYOFWEEK ( date_expression )
Description
The scalar function DAYOFWEEK returns the day of the week in the argument as a short integer value in the range of 1 - 7.
Example
SELECT *
FROM orders
WHERE DAYOFWEEK (order_date) = 2 ;
Notes