code: function (date, pattern) {
                  if (ariaUtilsType.isDate(date)) {
                      return aria.utils.Date.format(date, pattern);
                  } else {
                      this.$logError(aria.templates.Modifiers.DATEFORMAT_MODIFIER_ENTRY, [date]);
                  }
              }
docs: <span style="font-weight: bold">MODIFIER</span> <br/> Format a date with a given pattern
  @name aria.templates.Modifiers.prototype.dateformat
  @param {Date} date the given entry
  @param {String} pattern the date pattern
  @return {String} formatted date