---
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: getTodaysDate (timeZone)
layout: subsection
---

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

Returns a string containing today's date and time in the given time zone.

The returned string uses the date format of the user's default time zone. To customize the date format, you can use `date:getTodaysDateFormatted`.

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

`String`

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

```
date:getTodaysDate(timeZone)
```

<table><thead><tr><th>Parameter</th><th>Description</th></tr></thead><tbody><tr><td>timeZone</td><td>A DateTimeZone object. You can use <code>date:getDateTimeZone</code> to get the time zone. <p>To get a DateTimeZone object, call the <code>getDateTimeZone</code> function. Example: <code>date:getDateTimeZone('America/Los_Angeles')</code></p> <p>If you specify <code>null</code>, <code>getTodaysDate</code> uses the default time zone, which is the system time zone.</p></td></tr></tbody></table><br/>

<b>Example</b>

```
{
  "type" : "date",
  "id" : "dateId",
  "datePrecision": "SECOND",
  "label" : "Today is:",
  "enabled" : "false",
  "value" : "<% date:getTodaysDate(date:getDateTimeZone(userTimeZone)) %>"
},
```

Returns `'02/01/2022 5:52:12 PM'`

