---
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: getTodaysDateFormatted (timeZone, dateTimeFormat)
layout: subsection
---

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

Returns a date string corresponding to today's date in the given time zone and format.

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

`String`

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

```
date:getTodaysDateFormatted(timeZone, dateTimeFormat)
```

<table><thead><tr><th>Parameter</th><th>Description</th></tr></thead><tbody><tr><td>timeZone</td><td>A time zone string. For valid time zones, see the <a href="https://www.joda.org/joda-time/timezones.html">Available Time Zones on Joda.org</a>.</td></tr><tr><td>dateTimeFormat</td><td>A date and time format string. For valid date and time formats, see the Java documentation for <code>java.text.SimpleDateFormat</code>.</td></tr></tbody></table><br/>

<b>Example</b>

`date:getTodaysDateFormatted(date:getDateTimeZone('Asia/Shanghai'), 'dd/MM/yyyy hh:mm:ss')`

Returns `'31/10/2016 20:05:38'`

