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.

The LocalDateToSystemDate() function has one parameter:

  • timeToConvert (string): Required. The time string that you want to convert.

This example returns the local time based on the value contained in the @currentSystemTime variable, then converts it back to system time.