xxxxxxxxxx
randomDate = new Date(randomDate).toLocaleDateString("fr-FR");
xxxxxxxxxx
var options = {
year: "numeric",
month: "numeric",
day: "numeric",
hour: "numeric",
minute: "numeric",
};
console.log(date.toLocaleDateString("en-US", options));