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