A fix for issue #3195. Date formats are now used during validation.

The formats of the date elements were not used during validation, now they are.