📜  日期格式法语 js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:16.801000             🧑  作者: Mango

代码示例1
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"