Can't get Date Constraint working

FYI, I believe in XPath2 you can compare strings, and due to the particular formatting of dates (YYYY-MM-DD) the following should also work:

(. >= '2005-01-01') and (. <= '2007-12-31')

but arguably explicitly converting (both) the date strings is 'safer' [eg the above wont work under XPath1]

1 Like