update the date fields with datepicker