Current I have this var called uniqueDate
and If I try to get the value of this variable console.log(uniqueDate);
This will give me a log in inspect element like this
["2020-05-24", "2020-05-25", "2020-05-26", "2020-05-27", "2020-05-28", "2020-05-29"]
In php there's date('M j, Y',strtotime(<data>))
that will result something like this
May 24, 2020
May 25, 2020
May 26, 2020
May 27, 2020
May 28, 2020
May 29, 2020
I want to convert the date format of var uniqueDate to M j, Y like the sample date above.
Using Jquery? or just JS