I have this array:
["2019-01-01", "2019-01-02", "2019-01-03"]
but I need the dates to be like this:
["01-01-2019", "02-01-2019", "03-01-2019"]
This is how far I got:
var newdate= Date.parse(olddate);
console.log(newdate.toString('dd-MMM-yyyy'));
I get this error:
Uncaught RangeError: toString() radix argument must be between 2 and 36
Thank you