# 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()](/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-date-time/mc-ampscript-reference-date-time-system-date-to-local-date.md)
