📜  js Date istoday - Javascript 代码示例

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

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