📜  dateParser javascript 代码示例

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

代码示例1
// this function turns any isostring format date onto " day monthy year " format
function dateParser(chaine) {
  let newDate = new Date(chaine).toLocaleDateString("fr-FR", {
    year: "numeric",
    month: "long",
    day: "numeric",
  });
  return newDate;
}