# Hour (DateTimeWithOffset dateTime)

| **Name**    | ***Hour with Offset***                                                                               |
| ----------- | ---------------------------------------------------------------------------------------------------- |
| Syntax      | Hour (DateTimeWithOffset dateTime)                                                                   |
| Purpose     | To return the hour part of the specified date time offset value.                                     |
| Description | Returns a value between 0 and 23 representing the hour part of the specified date time offset value. |
| Return Type | Int64                                                                                                |
| Parameter   | dateTime \[System.DateTimeOffset] – 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%2FjNxpFAOkAYOzXH5CLXQF%2F0.png?alt=media)

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

Where,

*dateTime* = 06:40:35 AM

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

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

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