> For the complete documentation index, see [llms.txt](https://v5docs.keyfax.biz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://v5docs.keyfax.biz/reference/expression-reference/date-expressions/weekday.md).

# WeekDay

Returns the day of the week as a number, where Sunday is 1 and Saturday is 7.

| Expression | Databox value        | Result |
| ---------- | -------------------- | ------ |
| `WeekDay`  | `15-10-2023 08:00pm` | `1`    |

| Day       | Number |
| --------- | ------ |
| Sunday    | 1      |
| Monday    | 2      |
| Tuesday   | 3      |
| Wednesday | 4      |
| Thursday  | 5      |
| Friday    | 6      |
| Saturday  | 7      |

The week starting on Sunday catches people out when writing a working-days rule: Monday to Friday is `WeekDay Between(2,6)`.
