# DateToIntegerYYYYMMDD (DateTimeWithOffset dateTime)

| **Name**    | ***DateToIntegerYYYYMMDD with Offset***                                 |
| ----------- | ----------------------------------------------------------------------- |
| Syntax      | DateToIntegerYYYYMMDD (DateTimeWithOffset dateTime)                     |
| Purpose     | To convert the given date time to an integer.                           |
| Description | Convert the given date time value to an integer in the YYYYMMDD format. |
| Return Type | Int32                                                                   |
| Parameter   | dateTime \[System.DateTimeOffset] – Date time Object                    |

**Example**

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

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

Where,

*dateTime* = 05/05/2022 01:30:00 PM +05:00

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/bBv5F6qMlgGyuiOLKNe8/1.png)

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

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