-3

In JavaScript I have a variable that contains a series of dates all formatted like this:

5/3/2021 12:00:00 AM

How can I update that variable to change the format of the date to this:

May 3
Amateur
  • 5
  • 3

1 Answers1

0
dates.map(d => d.toDateString().split(' ').slice(1, 3).join(' '))
Clem
  • 2,150
  • 15
  • 17