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

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

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

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