# Hour (Date dateTime)

| **Name**    | ***Hour***                                                                                    |
| ----------- | --------------------------------------------------------------------------------------------- |
| Syntax      | Hour (Date dateTime)                                                                          |
| Purpose     | To return the hour part of the specified date time value.                                     |
| Description | Returns a value between 0 and 23 representing the hour part of the specified date time value. |
| Return Type | Int64                                                                                         |
| Parameter   | dateTime \[System.DateTime] – Date for which the hour will be returned                        |

**Example**

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/KyxFjlt3INlc85YenC5I/0.png)

In this example, we will pass a date time value to the function transformation object using a *Variables* object.

Where,

*dateTime* = 09/04/2022 03:40:35 AM

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/i6QNfloKrk9k8nvoE98t/1.png)

In the output window, you can see that the hour part of the provided date time value has been returned.

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/4QOUBVgArSUDutDysi0Z/2.png)
