use date format in error messages for date fields