AMPscript
LocalDateToSystemDate
Now
SystemDateToLocalDate
Validate Your Server-Side JavaScript using WSProxy
Pass a local date and time value and return that value in the system time format
LocalDateToSystemDate(1)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | datetime | Required | Local date and time value |
1<script runat="server">
2 var time = Now();
3 var systemTime = Platform.Function.LocalDateToSystemDate(time);
4</script>