Added  format attribute for date fields