update the datepicker