Description
Returns the ISO day of the week (1=Monday through 7=Sunday)
| Return Value | Day of the Week |
|---|---|
| 1 | Monday |
| 2 | Tuesday |
| 3 | Wednesday |
| 4 | Thursday |
| 5 | Friday |
| 6 | Saturday |
| 7 | Sunday |
Aliases: DAY_OF_WEEK, DAYOFWEEK_ISO — equivalent spellings; same function and parameters.
Syntax
DAYOFWEEK(date)
Parameters
| Parameter | Description | Data Type | Required |
|---|---|---|---|
| date | Date value | Date or timestamp | Yes |
Example
SELECT
DAYOFWEEK(start_date)
FROM
rippling.employee.Employee
LIMIT
5;