📌  相关文章
📜  js 检查日期是否是今天 - Javascript 代码示例

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

代码示例1
const isToday = (someDate) => {
  const today = new Date()
  return someDate.getDate() == today.getDate() &&
    someDate.getMonth() == today.getMonth() &&
    someDate.getFullYear() == today.getFullYear()
}