update the input to the time selected by datePicker.