# 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://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/oNOAHkXFsJw15yPT4BbS/0.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://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/mDTcKpqH5aZ31pXI47bf/1.png)

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

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