Fixed date format in validator.