code: function (editorData) {
          if (Lang.isUndefined(Calendar)) {
              return editorData.inputElement.value;
          } else {
              var cal = editorData.inputObject,
                  date = cal.getSelectedDates()[0],
                  dd = [];
                  
              dd[cal.cfg.getProperty('MDY_DAY_POSITION') -1] = date.getDate();
              dd[cal.cfg.getProperty('MDY_MONTH_POSITION') -1] = date.getMonth() + 1;
              dd[cal.cfg.getProperty('MDY_YEAR_POSITION') -1] = date.getFullYear();
              return dd.join(cal.cfg.getProperty('DATE_FIELD_DELIMITER'));
          }
  	}
docs: Returns the value from the input element.
  Overrides Node.getEditorValue.
  @method getEditorValue
  @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
  @return {string} date entered