code: function(date) {
          var parsedDate;
  
          if (date) {
              if (date instanceof Date) {
                  parsedDate = DateMath.findMonthStart(date);
              } else {
                  var month, year, aMonthYear;
                  aMonthYear = date.split(this.cfg.getProperty(DEF_CFG.DATE_FIELD_DELIMITER.key));
                  month = parseInt(aMonthYear[this.cfg.getProperty(DEF_CFG.MY_MONTH_POSITION.key)-1], 10)-1;
                  year = parseInt(aMonthYear[this.cfg.getProperty(DEF_CFG.MY_YEAR_POSITION.key)-1], 10) - this.Locale.YEAR_OFFSET;
  
                  parsedDate = DateMath.getDate(year, month, 1);
              }
          } else {
              parsedDate = DateMath.getDate(this.today.getFullYear(), this.today.getMonth(), 1);
          }
          return parsedDate;
      }
docs: Parses a pagedate configuration property value. The value can either be specified as a string of form "mm/yyyy" or a Date object
  and is parsed into a Date object normalized to the first day of the month. If no value is passed in, the month and year from today's date are used to create the Date object
  @method _parsePageDate
  @private
  @param {Date|String} date Pagedate value which needs to be parsed
  @return {Date} The Date object representing the pagedate