Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how check if a form date is before today javascript

var Startdate = new Date(document.getElementById("Insert ID here").value)
var now = new Date();
if (before < now) {
  // selected date is in the past
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #form #date #today #javascript
ADD COMMENT
Topic
Name
4+8 =