LocalDateToSystemDate

Overview

Converts a local datetime string or object to the system time.

Syntax

LocalDateToSystemDate(1)

Function Properties

Ordinal Type Description
1 string Required Local time to convert

Usage

%%[
VAR @currentSystemTime
SET @currentSystemTime = NOW()
]%%
Local Time For User:  %%=SystemDateToLocalDate(@currentSystemTime)=%% 
Converted Back to System Time %%=LocalDateToSystemDate(@currentSystemTime)=%%

The system returns the local time based off of the value contained in the @currentSystemTime variable, then converts it back to system time.

Last Updated: Jun 8, 2021