# 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://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/0%20\(146\).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://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/1%20\(147\).png)

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

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/2%20\(147\).png)
