Hi All,
My problem is how to add certain days to the given date and how to print those dates in a loop.
Please help me , I am trying to do something like below:
function printdate() {
var selectedstartDate = (document.getElementById('<%=txtdate.ClientID%>').value)
var mydatecounter = parseInt(document.getElementById('<%=txtcounter.ClientID%>').value)
var myDate = new Date(selectedstartDate);
var targetdate = newdate.setDate(myDate + mydatecounter) ;
for(var Date =selectedstartDate ; Date< targetdate ; Date++)
{
document.write(Date );
}
}
Regards,
Jayesh(From India,Mumbai)
Go to the complete details ...