# TimeToInteger (DateTime)

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

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/uEgVnYMwOR87nlFKKF9n/0.png)

**Example**

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

Where,

*dateTime* = 11:30:12 PM

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/xn7Gv9Nv29ExrHZSHFvE/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/ZU1TyEm5tObK2Ds6ULmt/2.png)
