Test whether a string matches the ISO date format.