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://documentation.astera.com/~gitbook/image?url=https%3A%2F%2F3083465318-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FsR50Wa7EwZGlmPSAMkkf%252Fuploads%252FpVuYF5lNstMpfZpPr5fv%252F0.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=d01bb300&sv=1)
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://documentation.astera.com/~gitbook/image?url=https%3A%2F%2F3083465318-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FsR50Wa7EwZGlmPSAMkkf%252Fuploads%252F6iPaLOsc9AeT7K3bFeQs%252F1.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=7dd39799&sv=1)
In the output window, you can see that the provided value has been converted into an integer value, representing the specified date.
![](https://documentation.astera.com/~gitbook/image?url=https%3A%2F%2F3083465318-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FsR50Wa7EwZGlmPSAMkkf%252Fuploads%252FOpNTNOoVz3YbyTPQZQ3H%252F2.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=6458c027&sv=1)
Last updated