📅  最后修改于: 2022-03-11 15:01:16.801000             🧑  作者: Mango
const start = Date.now();
const date = new Date(start);
const formatted = date.toLocaleDateString("fr-FR")
setTimeout(() => {
console.log(formatted);
}, 2000);
// output after two seconds: "02/09/2021"