---
category: [Administration & Integrations, Platform and Product Extensions, Platform and Product Extensions/Integration, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions/Workday Extend]
keyword: [Extend, PMD Scripting, Scripts]
nav: wcp_docs
parent_url: /wcp_docs/
title: parse (dateString, dateFormat, timeZoneString)
layout: subsection
---

## <a id="section_m3p_myb_5db"></a>Description

Parses the input date string and returns a Date object based on the input date format and time zone.

## <a id="section_cyq_j1m_zsb"></a>Return Type

`Date`

## <a id="section_njs_xzl_zsb"></a>Namespace Function Syntax

```
date:parse(dateString, dateFormat, timeZoneString)
```

<table><thead><tr><th>Parameter</th><th>Description</th></tr></thead><tbody><tr><td>dateString</td><td>A date string to parse, typically the value of a <code>date</code> tag.</td></tr><tr><td>dateFormat</td><td>The date format of the given <code>dateString</code>. <p>For valid date formats, see the Java documentation for <code>java.text.SimpleDateFormat</code>.</p></td></tr><tr><td>timeZoneString</td><td>The time zone of the given <code>dateString</code>. Example:<code>'America/Los_Angeles'</code></td></tr></tbody></table><br/>

<b>Example</b>

`date:parse('01/07/2020 15:10:45', 'dd/MM/yyyy HH:mm:ss', 'Europe/Dublin')`

