4.6.  Comparing Date Values

It rarely makes sense to compare date values ​​of two PDF documents, but if it is really needed, you can use the following tags:

<!-- Tags to compare date values: -->

<haveSameCreationDate     />
<haveSameModificationDate />

In the next example, the modification dates of two documents are compared:

<testcase name="haveSameModificationDate">
  <assertThat testDocument="test/test.pdf"
              masterDocument="master/master.pdf"
  >
    <haveSameModificationDate />
  </assertThat>
</testcase>

Comparing two dates is always carried out with the time resolution DATE (yyyy-MM-dd).