format the dob field