# 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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FIWsaDeQBvPWub35vER6f%2F0.png?alt=media)

**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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FWNyZ260aX3kJZk8gNAgy%2F1.png?alt=media)

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

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