function renderDateBadge(date, reversed = false) {
  const d = parseDate(date)
  const color = age(d, reversed)
  const message = formatDate(d)
  return { message, color }
}
Creates a badge object that displays a date

@param {Date | string | number | dayjs } date JS Date object, string, unix timestamp or dayjs object
@param {boolean} reversed Reverse the color scale (the older, the better)
@returns {object} A badge object that has two properties: message, and color