LocalDateToSystemDate
Overview
Converts the passed date-time string or value from the local time of the account or user to Marketing Cloud system timeSyntax
LocalDateToSystemDate(1)
| 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);