# ToLocal (DateTime)

| **Name**    | ***ToLocal***                                                            |
| ----------- | ------------------------------------------------------------------------ |
| Syntax      | ToLocal (Date dateTime)                                                  |
| Purpose     | Returns local date time value after conversion from UTC date time value. |
| Description | Converts specified UTC date time value to local date time value.         |
| Return Type | DateTime                                                                 |
| Parameter   | dateTime \[Syste.DateTime] – Date which will be converted to local       |

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

**Example**

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

Where,

*dateTime* ­= 09/10/2020 10:10:25 AM

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

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

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