SystemDateToLocalDate

Overview

Converts a system datetime string or object to the Marketing Cloud user's local time.

Syntax

SystemDateToLocalDate(1)

Function Properties

Ordinal Type Description
1 Date Required System time to convert

Usage

%%[
VAR @currentSystemTime
SET @currentSystemTime = NOW()
]%%
Local Time For User:  %%=SystemDateToLocalDate(@currentSystemTime)=%%

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

Last Updated: Jun 8, 2021