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

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

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

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