---
title: "Date Expression Compare validator"
canonical: "https://support.appfire.com/space/JSU/12681698/Date%20Expression%20Compare%20validator"
format: markdown
---
> Macro (aura-html)

> ℹ️ This is the documentation for JSU for Jira Data Center. If you are using JSU on Jira Cloud, see our [JSU Cloud documentation](https://appfire.atlassian.net/wiki/spaces/JSUCLOUD/pages/12518578).

> Macro (excerpt)
> 
> ## Description
> 
> The Date Expression Compare validator compares the value of a date field with a date expression, for example, the date field must be more recent than the actual date. If the check fails, no action will be performed.
> 
> ## Configuration
> 
> You must select the date field, the comparison condition, the date expression, and whether to include the time component for comparison. 
> 
> ### Example
> 
> A workflow is configured so that the Resolve transition includes the Date Expression Compare check where `Due Date > 5d`. If a user attempts to resolve an issue on this workflow, where the Due Date is less than five days from now, the check will fail, and no action will be performed.
> 
> ![Example configuration of the Date Expression Compare validator as described on this page.](media://1e008c02-c8c7-43d5-b680-3569cb407b36)
> 
> ### Optional error message
> 
> You can define a [custom error message](https://appfire.atlassian.net/wiki/spaces/JSU/pages/12682303) for JSU validators to provide a clear explanation of the situation to your users. If you leave this field empty, a default error message from Jira will be displayed for validation errors.