weekday
Returns a number representing the day of the week of the date provided.
Syntax
weekday(<date>)
| Parameter | Type | Description |
|---|---|---|
| date | Date | The date for which to determine the day of the week. |
Return values
Integer
Usage
Returns the day of the week for the date.
weekday(date(2022, 5, 12))
Returns the day of the week for the date.
weekday(orders.processed_at)