# 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       |

![](/files/nWV8U2fwkZvGOkXPTVV0)

**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

![](/files/YzSlTukUG47BtJrJAWmJ)

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

![](/files/3CvZNoqm3t95XkIEfZXJ)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.astera.com/astera-data-stack-v10/functions/date-time/tolocal-datetime.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
