> For the complete documentation index, see [llms.txt](https://docs.keyfax.biz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keyfax.biz/product-suite/admin/databox-expressions/date-expressions/after.md).

# After

Use the `After` expression to determine if the date is after the specified date. Any time part of the date is ignored.&#x20;

<table data-full-width="false"><thead><tr><th>Expression</th><th align="center">Databox Value</th><th align="center">Result</th><th>Comments</th></tr></thead><tbody><tr><td><code>After("14-10-2010")</code></td><td align="center">15-10-2010 08:00pm</td><td align="center">True</td><td>Any time part of the date is ignored</td></tr><tr><td><code>After(DateAdd(Today,-1,'yyyy'))</code></td><td align="center">15-10-2020 08:00pm</td><td align="center">True</td><td>This checks if the date falls within the last year. Note, this only expects date values to be present in the Databox and will automatically convert date strings with no need for an AsDate qualifier.</td></tr></tbody></table>

### Example 1

Compare two fixed values using [Company Data](/product-suite/admin/entities/databoxes/company-data.md) and [Script Data](/product-suite/admin/entities/databoxes/script-data.md)Databoxes.&#x20;

Read **CompanyData.Expressions.Date (15-10-2016)** and write into Examples.Date\
Run expression **Examples.Date.After 14-10-2016** to check if it is after 14-10-2016\
Display message.

<figure><img src="/files/1E3fSXeWIUZkRHIy0kdN" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/m5vjDR7DvNgHqBjTj6Wu" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/H5VI3ZBjISG7bwoi1C9i" alt=""><figcaption></figcaption></figure>

### **Example 2**

Compare a fixed value using a [Company Data](/product-suite/admin/entities/databoxes/company-data.md) Databox against a user entered date in a [Script Data](/product-suite/admin/entities/databoxes/script-data.md) Databox.

User enters date and writes it into Script.Date01\
Read **CompanyData.Expressions.Date (15-10-2016)** and write into **Examples.Date**\
Run expression **Examples.Date.After Date01** to check if 15-10-2016 is after the user entered date

<figure><img src="/files/yJ1iHCMNfikP0Xp5Prz2" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/v8bMZUUCrlExzM4vEVdz" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/d1tYI05sJeOdMqg94UUB" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/SiIxAZaCJ8b0BtBjzYb0" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/c2GUZ2GjsZaARhCDHxx1" alt=""><figcaption></figcaption></figure>

### **Example 3**

Compare two user entered dates in [Script Data](/product-suite/admin/entities/databoxes/script-data.md)Databoxes.

User enters date and writes it into **Script.Date01**\
User enters date and writes it into **Script.Date02**\
**Script.Date02** is written into **Examples.Date**\
Run expression **Examples.Date.After Date01** check if **Script.Date02** is after **Script.Date01**

<figure><img src="/files/Q9us2dVgGnYnL6pVS7sh" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/hhqmDkl9RNtPx8SaHUKS" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/a0eJSh5UOX9LTWFzBhF5" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/GjhYyx43gSSzfDmi2sOx" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/GZQCWyhgGDzBu2Nzx5IZ" alt=""><figcaption></figcaption></figure>

### Example 4

Compare today's date against a user entered date in a [Script Data](/product-suite/admin/entities/databoxes/script-data.md) Databox.&#x20;

User enters date into **Script.Date01**\
Run expression **SystemValue.DateChecks.After** to see if today is after the user entered date

<figure><img src="/files/Rl01eyUkmIKrEgpNSVby" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/BSW7F3xLrNpTH6hVnNc5" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/k3vjAZo45H0higmsJzNi" alt=""><figcaption></figcaption></figure>
