SystemDateToLocalDate

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 

Marketing Cloud Engagement ✅ Yes
Marketing Cloud Next ❌ No

Syntax 

1SystemDateToLocalDate(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.

1%%[
2  Var @currentSystemTime
3  Set @currentSystemTime = Now()
4]%%
5Local Time For User:  %%=SystemDateToLocalDate(@currentSystemTime)=%%

The system returns the local time based on the value contained in the @currentSystemTime variable.