> For the complete documentation index, see [llms.txt](https://docs.tabula.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tabula.io/data-transformation/formulas/date-and-time-functions/dayofweek.md).

# DayOfWeek

Gets the day-of-week number of a date \ datetime

```mathematica
DayOfWeek("2022-07-08") → 5
DayOfWeek("2022-01-06 20:00:00.000") → 4
```

#### Inputs

`DayOfWeek(dateTime)`

* `dateTime` - Date, time, or datetime value
