# ToUtc (Date dateTime)

| **Name**    | ***ToUtc***                                                       |
| ----------- | ----------------------------------------------------------------- |
| Syntax      | ToUtc (Date dateTime)                                             |
| Purpose     | To convert a specified date time value to UTC.                    |
| Description | Returns UTC date time value after conversion.                     |
| Return Type | DateTime                                                          |
| Parameter   | dateTime \[System.DateTime] – Date which will be converted to UTC |

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

**Example**

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

Where,

*dateTime* ­= 08/06/2018 10:20:40 AM

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

In the output window, you can see that the provided date time value has been converted into a UTC date time value.

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