javascript convert iso date to dd/mm/yyyy code example
Example: transform a date to iso string to date in javascript
date = new Date(dateISOString);
year = date.getFullYear();
month = date.getMonth()+1;
day = date.getDate();
hour = date.getHours();
minutes = date.getMinutes();
if (day < 10) {
dt = '0' + dt;
}
if (month < 10) {
month = '0' + month;
}
return finalDate = `${year}/${month}/${day} - ${hour}h:${minutes}mn`;