---
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: after (date1, date2)
layout: subsection
---

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

Returns true if the first date is after the second date.

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

`Boolean`

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

```
thisDate1.after(date2)
```

<table><thead><tr><th>Parameter</th><th>Description</th></tr></thead><tbody><tr><td>date2</td><td>A Date object to compare with the input Date instance. The Date object is typically the value of a date or time tag.</td></tr></tbody></table><br/>

<b>Example</b>

Assume <i>dateWidget1.value</i> is <i>03/01/2022</i> and <i>dateWidget2.value</i> is <i>03/30/2022</i>.

`dateWidget1.value.after(dateWidget2.value)`

Returns `false`.

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

```
date:after(date1, date2)
```

<table><thead><tr><th>Parameter</th><th>Description</th></tr></thead><tbody><tr><td>date1</td><td>A Date object to compare with date2 to determine if it occurs after date2. The Date object is typically the value of a date or time tag.</td></tr><tr><td>date2</td><td>A Date object to compare with date1. The Date object is typically the value of a date or time tag.</td></tr></tbody></table><br/>

<b>Example</b>

`date:after(dateObjectWithYear2016, dateObjectWithYear2000)`

Returns `true`

