0
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 on input type="date"
.
is confused your question, "input" means in the
value
?– Ricardo Pontual