Answers for "check if date is greater than current date javascript"

-1

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!");
}
Posted by: Guest on April-09-2021

Code answers related to "check if date is greater than current date javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language