Converts a system datetime string to the local time of the current Marketing Cloud Engagement user.
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
SystemDateToLocalDate(systemTime)
The SystemDateToLocalDate() function has one parameter:
systemTime(string): Required. The system time value that you want to convert to local time.
Usage
To use this function, pass it your current system time.
%%[
Var @currentSystemTime
Set @currentSystemTime = Now()
]%%
Local Time For User: %%=SystemDateToLocalDate(@currentSystemTime)=%%
The system returns the local time based on the value contained in the @currentSystemTime variable.