works perfectly THANK U!
hey Igor,
else if((value.getTime() - now.getTime()) < (7200000)) {
alert("within 2 hours ");
this code doesnt work when implemented... pls do tell me an alternative! it still accepts the value within the timespan of 2 hours
if i were to calculate the time span for two hours then wat should i do? just change the 100060603 to 100060602? will it work?
if ((value.getTime() - now.getTime()) < (100060603)) this line of code could u pls explain..... that value of 100060603 why is it used? n how did u calculate that value for time could u pls explain that for me?
and what about the date which is already passed? if i select a date which has already passed then i want the alert to say " Date already passed"
Could u pls explain to me the logic of that code pls!