---
schema_version: "1"
id: c73dbbc9912f6f94cdd2b2467c99665c57c24e4f7693c18f8d29cb2900e50b48
title: LocalDateToSystemDate
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_platformDateTimeLocalDateToSystemDate.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_platformDateTimeLocalDateToSystemDate.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4c795f74ad9c59d325fdc0d149623ab8d646e0f258f8aa14cbb8ff3ad1e19b8d
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# LocalDateToSystemDate

## Overview

Pass a local date and time value and return that value in the system time format

### Syntax

LocalDateToSystemDate(1)

### Function Properties

<!--complex table-->

| Ordinal | Type     |              | Description               |
| ------- | -------- | ------------ | ------------------------- |
| **1**   | datetime | **Required** | Local date and time value |

## Example

```
<script runat="server">
     var time = Now();
     var systemTime = Platform.Function.LocalDateToSystemDate(time);
</script>
```
