function formatDate(d) {
  const date = parseDate(d)
  const dateString = date.calendar(null, {
    lastDay: '[yesterday]',
    sameDay: '[today]',
    lastWeek: '[last] dddd',
    sameElse: 'MMMM YYYY',
  })
  // Trim current year from date string
  return dateString.replace(` ${dayjs().year()}`, '').toLowerCase()
}
Returns a formatted date string without the year based on the value of input date param d.

@param {Date | string | number | dayjs } d JS Date object, string, unix timestamp or dayjs object
@returns {string} Formatted date string