# 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://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/0%20\(117\).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://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/1%20\(118\).png)

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

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/2%20\(118\).png)
