LocalDateToSystemDate

Overview

Converts the passed date-time string or value from the local time of the account or user to Marketing Cloud system time

Syntax

LocalDateToSystemDate(1)

Function Properties

Ordinal Type Description
1 datetime Required Local date-time value to convert

Example

This sample code takes the value of the myDateTime variable and converts it to the corresponding value of the system time.

var myDateTime = new Date();
var convertedDateTime = DateTime.LocalDateToSystemDate(myDateTime);
Last Updated: Jun 8, 2021