LocalDateToSystemDate
→ stringConverts a date-time from local account or user time to Marketing Cloud system time (CST, without daylight saving adjustments).
Available in:
Email
CloudPage
Automation
Triggered Send
Syntax
Platform.Function.LocalDateToSystemDate(dateString)
1 argument
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
dateString |
string | Yes | A date-time string in local account/user time to convert to system time (CST). |
Accepted formats include ISO 8601 (2025-08-05T12:34:56.789Z), US notation (8/5/2025 12:34 PM), long-form (5 August 2025), and time-only (14:23:56).
Example
var time = Platform.Function.Now();
var systemTime = Platform.Function.LocalDateToSystemDate(time);
Write(systemTime);