Update the datetimepicker.