# Day (DateTimeWithOffset dateTime)

| **Name**    | ***Day with Offset***                                                       |
| ----------- | --------------------------------------------------------------------------- |
| Syntax      | Day (DateTimeWithOffset dateTime)                                           |
| Purpose     | To return the number of days.                                               |
| Description | Gets the day part of the date time offset value.                            |
| Return Type | Int64                                                                       |
| Parameter   | dateTime \[System.DateTimeOffset] – Date for which the day will be returned |

**Example**

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

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

Where,

*dateTime* = 30/JUN/2022

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

In the output window, you can see that the day part of the provided date time offset value has been returned.

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