code: public void setDateFormatCalendar(Calendar calendar) {
          dateFormatter.setCalendar(calendar != null ? calendar : Calendar.getInstance());
      }
docs: Sets the calendar that is associated with this date editor's date formatter.
  
  @param calendar a Calendar