📌  相关文章
📜  如何使单个数字日期以零开头 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:44.892000             🧑  作者: Mango

代码示例1
const today = new Date()

const year = today.getFullYear()

const month = `${today.getMonth() + 1}`.padStart(2, "0")

const day = `${today.getDate()}`.padStart(2, "0")

const stringDate = [day, month, year].join("/") // 13/12/2017