code: public void setSelectedDate(int year, int month, int day) {
          dateSpinner.setSelectedDate(new GregorianCalendar(year, month, day));
          // a custom selection has been set, don't select the default date:
          shouldSelectDefault = false;
      }
docs: Sets the Spinners' date selection as integers considering only day.