# 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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FC9xhhdyVBurKwpvCNbQc%2F0.png?alt=media)

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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F911Zwbbkb6ngsjp1BOEb%2F1.png?alt=media)

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

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FvGPm3mxZTsHx7FqxsEdE%2F2.png?alt=media)
