JSFiddle - React, Tailwind, and code Playground

JavaScript

let uniqueDate = [
  "2020-05-24",
  "2020-05-25",
  "2020-05-26",
  "2020-05-27",
  "2020-05-28",
  "2020-05-29"
]

let formatedDates = uniqueDate.map((arr) => {
  let date = new Date(arr)
  var options = { month: "short", day: "numeric", year: "numeric" }
  return new Intl.DateTimeFormat("en-US", options).format(date)
})
console.log(formatedDates)