I am trying to know if a date has already past-by and if it has I would make the input box non-editable.
My input box code is:
<input id="inserviceInputId" type="text" value="09/05/2003" name="inserviceInput" style="width:7em">
and the Dojo code I have so far:
var date1 = new Date;
dojo.query("[name=inserviceInput]").forEach(function(evnt,i){
console.log(evnt.value)
});
So, I do get the input box's value here. But the issue is how to subtract the today's date and the date in the value.
Thanks for the help in advance.