8.2.3.7 CompareDateWithMask
The condition CompareDateWithMask makes it possible to compare the value of two fields containing dates and validate their values relative to one another and an operator. The comparison uses the day, month or year of the fields or a combination of all three. The condition is shown in Figure 164.
By selecting a field in the first drop-down, Field 1, all fields of with the data type Date are available for comparison with are visible in Field 2.
The Operator drop-down shows the different available options, see Table 80.
| Operator | Description |
|---|---|
| = | Equals |
| > | Greater than |
| < | Less than |
| >= | Greater than or equals |
| <= | Less than or equals |
By selecting the Compare to field check box, Field 1 is compared to another date field in Field 2. If Compare to field has not been selected, a date may be entered into the Value parameter. This Value can be entered manually, or using the Date editor.
The mask is made up of three Compare using check boxes, Year, Month, and Day.
Checking these define which part of the date fields to compare. Choosing the Year check box compares only the year part of the dates contained in Field 1 and Field 2. A combination of check boxes can also be chosen, for example the day and month of the date fields can be compared.
