SilverStray
Programmer
Hi,
I have a page that will always get the next day and display it on screen. My problem is that, how do I increment a date to 1 calendar day? The following script of mine produces a date like 2/32/2005 if the current date is 1/31/2005, which is wrong.
var time=new Date();
var lmonth=time.getMonth()+1;
var date=time.getDate()+1;
var year=time.getYear();
defDate = lmonth + '/' + date + '/' + year;
Hope you can help.
Thanks in advance!
j. echavez
I have a page that will always get the next day and display it on screen. My problem is that, how do I increment a date to 1 calendar day? The following script of mine produces a date like 2/32/2005 if the current date is 1/31/2005, which is wrong.
var time=new Date();
var lmonth=time.getMonth()+1;
var date=time.getDate()+1;
var year=time.getYear();
defDate = lmonth + '/' + date + '/' + year;
Hope you can help.
Thanks in advance!
j. echavez