formatting date for patients_update