---
schema_version: "1"
id: e2e05bc3e318ed03a89535ad31b710128636ade57a3a57cfdff6503492f62038
title: LocalDateToSystemDate
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/ampscript/references/date-time/mc-ampscript-reference-date-time-local-date-to-system-date.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-date-time/mc-ampscript-reference-date-time-local-date-to-system-date.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 8888b6b44e9a84573a3460f85cbe52d29ebffeefb202fded5b46965a3fc068c5
products:
  - AMPscript for Marketing Cloud
  - Marketing Cloud
---
# LocalDateToSystemDate

Converts a local datetime string to the system time.

The system time is North American Central Standard Time (UTC-6) without adjustments for daylight saving time. The local time is the time of your Marketing Cloud Engagement user account, which can be configured in Setup.

## Availability

<table>
  <tr>
    <td>Marketing Cloud Engagement</td>
    <td>✅ Yes</td>
  </tr>
  <tr>
    <td>Marketing Cloud Next</td>
    <td>❌ No</td>
  </tr>
</table>

## Syntax

```
LocalDateToSystemDate(timeToConvert)
```

The `LocalDateToSystemDate()` function has one parameter:

- `timeToConvert` (string): Required. The time string that you want to convert.

## Usage

This example returns the local time based on the value contained in the `@currentSystemTime` variable, then converts it back to system time.

```
%%[
  Var @currentSystemTime
  Set @currentSystemTime = Now()
]%%

<p>Local Time For User:  %%=SystemDateToLocalDate(@currentSystemTime)=%%</p>
<p>Converted Back to System Time %%=LocalDateToSystemDate(@currentSystemTime)=%%</p>
```

## See Also

- [SystemDateToLocalDate()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-date-time/mc-ampscript-reference-date-time-system-date-to-local-date.md)
