code: public void setSelectedDate(Calendar date) {
          if(date!=null) {
              dateSpinner.setSelectedDate(date);
              timeSpinner.setSelectedTime(date.get(Calendar.HOUR_OF_DAY), date.get(Calendar.MINUTE));
              // a custom selection has been set, don't select the default date:
              shouldSelectDefault = false;
          }
      }
docs: Sets the Spinners' selection as date considering both time and day.
  @param date The date to be selected.