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

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

Returns true if the given date is the current date in the given timezone.

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

`Boolean`

## <a id="section_instanceMethodSyntax"></a>Instance Method Syntax

```
thisDate.checkTodaysDate(timeZone)
```

<table><thead><tr><th>Parameter</th><th>Description</th></tr></thead><tbody><tr><td>timeZone</td><td>A DateTimeZone object. <p>To get a DateTimeZone object, call the <code>getDateTimeZone</code> function. Example: <code>date:getDateTimeZone('America/Los_Angeles')</code></p></td></tr></tbody></table><br/>

<b>Example</b>

`dateWidget.value.checkTodaysDate(userTimeZone)`

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

```
date:checkTodaysDate(date, timeZone)
```

<table><thead><tr><th>Parameter</th><th>Description</th></tr></thead><tbody><tr><td>date</td><td>A Date object, typically the value of a <code>date</code> or <code>time</code> tag.</td></tr><tr><td>timeZone</td><td>A DateTimeZone object.</td></tr></tbody></table><br/>

<b>Example</b>

`date:checkTodaysDate(myDateInput.value, date:getDateTimeZone('America/Los_Angeles'))`

Returns `true`

