How can I put this variable inside input
var data = new Date();
var dataCurrente = new Date();
if (data > dataCurrente) {
alert("Data maior que atual");
}
In case the new date()
has to be the date I put in input type="date"
.