Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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()
}
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #js #check #date #today
ADD COMMENT
Topic
Name
4+4 =