code: function(date) {
  
          var aToBeSelected = this._toFieldArray(date),
              validDates = [],
              selected = [],
              cfgSelected = DEF_CFG.SELECTED.key;
  
          
          for (var a=0; a < aToBeSelected.length; ++a) {
              var toSelect = aToBeSelected[a];
  
              if (!this.isDateOOB(this._toDate(toSelect))) {
  
                  if (validDates.length === 0) {
                      this.beforeSelectEvent.fire();
                      selected = this.cfg.getProperty(cfgSelected);
                  }
                  validDates.push(toSelect);
  
                  if (this._indexOfSelectedFieldArray(toSelect) == -1) { 
                      selected[selected.length] = toSelect;
                  }
              }
          }
  
  
          if (validDates.length > 0) {
              if (this.parent) {
                  this.parent.cfg.setProperty(cfgSelected, selected);
              } else {
                  this.cfg.setProperty(cfgSelected, selected);
              }
              this.selectEvent.fire(validDates);
          }
  
          return this.getSelectedDates();
      }
docs: Selects a date or a collection of dates on the current calendar. This method, by default,
  does not call the render method explicitly. Once selection has completed, render must be
  called for the changes to be reflected visually.
  
  Any dates which are OOB (out of bounds, not selectable) will not be selected and the array of
  selected dates passed to the selectEvent will not contain OOB dates.
  
  If all dates are OOB, the no state change will occur; beforeSelect and select events will not be fired.
  
  @method select
  @param {String/Date/Date[]} date The date string of dates to select in the current calendar. Valid formats are
  individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
  Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
  This method can also take a JavaScript Date object or an array of Date objects.
  @return {Date[]}   Array of JavaScript Date objects representing all individual dates that are currently selected.