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

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