check if a date is greater than another date in javascript code example
Example: check if date is greater than current date javascript
var date = document.getElementById("inputDate").value;
var varDate = new Date(date); //dd-mm-YYYY
var today = new Date();
if(varDate >= today) {
//Do something..
alert("Working!");
}