# TimeToInteger (DateTimeOffset)

| **Name**    | ***TimeToIntegerHHMMSS with Offset***                                         |
| ----------- | ----------------------------------------------------------------------------- |
| Syntax      | TimeToIntegerHHMMSS (DateTimeWithOffset dateTime)                             |
| Purpose     | To convert the given date time offset to an integer.                          |
| Description | Converts the given date time offset value to an integer in the HHMMSS format. |
| Return Type | Int32                                                                         |
| Parameter   | dateTime \[System.DateTimeOffset]                                             |

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

**Example**

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

Where,

*dateTime* = 7/14/2022 1:30:20 PM

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

In the output window, you can see that the provided value has been converted into an integer value, representing time.

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