Get Hour
Returns the hour of a date and time, from 0 to 23.
Get Hour returns the hour of a date and time on the 24-hour clock, from 0 to 23. Use it to route requests that arrive outside office hours, for example.
Add the action
In the Process Designer toolbox, open DateTime and pick Get Hour (or type Get Hour in the search box).

Inputs and outputs
| Field | Direction | Type | Required | What to put / what you get |
|---|---|---|---|---|
| Datetime | Input | Date and time | Yes | The date and time to read the hour from. |
| Hour | Output | Integer | Yes | The hour. |
Example
| Datetime | Hour |
|---|---|
2024-06-15T23:59:59 | 23 |
2025-01-01T01:00:00 | 1 |
2025-01-01T01:00:00Z | 1 |
2025-01-01T01:00:00+02:00 | 23 (the value is 2024-12-31 23:00 in UTC) |
Good to know
- Time zone: a value that carries a UTC offset (for example
2025-01-01T01:00:00+02:00) is first converted to UTC, and the part is read from the UTC value. A value without an offset, or ending inZ, is used as it is. - The hour is always on the 24-hour clock: 1 PM gives
13. - An empty or invalid Datetime (for example
2023-02-29ornot a date) stops the step with an error.

