code: function numberToDateName(value, type) {
      if (type == 'dow') {
        return locale.DOW[value - 1];
      } else if (type == 'mon') {
        return locale.MONTH[value - 1];
      }
    }
docs: Parse a number into day of week, or a month name;
  used in dateList below.
  @param {Number|String} value
  @param {String} type
  @returns {String}