> 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/hour.md).

# Hour

Extracts hours from a datetime \ time

```mathematica
Hour("23:11:40.000") → 23
Hour("2021-01-01 20:00:00.000") → 20
```

#### Inputs

`Hour(dateTime)`

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