code: function formatDate(date, format)
    {
      let parsedDate = new Date(date)
      if (!isDate(parsedDate))
        throw new TypeError("A date or timestamp must be provided to {{formatDate}}")
  
      if (isString(format) && format in formats.date)
        format = formats.date[format]
  
      return getCachedDateTimeFormat(locale, format).format(parsedDate)
    }
docs: ============================================= FORMATTER FUNCTIONS =============================================