Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js check if date is future

var now = new Date();
if (before < now) {
  // selected date is in the past
}
 
PREVIOUS NEXT
Tagged: #js #check #date #future
ADD COMMENT
Topic
Name
4+4 =