Answers for "check the date is today js"

3

js check if date is today

const isToday = (someDate) => {
  const today = new Date()
  return someDate.getDate() == today.getDate() &&
    someDate.getMonth() == today.getMonth() &&
    someDate.getFullYear() == today.getFullYear()
}
Posted by: Guest on January-13-2021
0

get today's date javascript

var today = new Date();

var date = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate();
Posted by: Guest on August-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language