# ToUtc (DateTimeWithOffset)

| **Name**    | ***ToUtc***                                                                             |
| ----------- | --------------------------------------------------------------------------------------- |
| Syntax      | ToUtc (DateTimeWithOffset dateTimeOffset)                                               |
| Purpose     | To return UTC date time value after conversion.                                         |
| Description | Converts specified date time offset value to UTC.                                       |
| Return Type | DateTime                                                                                |
| Parameter   | dateTimeOffset \[System.DateTimeOffset] – DateTimeOffset which will be converted to UTC |

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

**Example**

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

Where,

*dateTimeOffset* = 07-18-2022 05:25:07 PM +05:00

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

In the output window, you can see that the provided date time offset value has been converted to its UTC date time value.

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