Format date fields