Adding one to date.

Hi,

I’m using JavaScript to create a booking diary. It is a week view. Therefore I want 7 days across the top row I'm using the following to add one to the date:-

d.setDate(d.getDate()+1);

However, it works fine until I get to the end of the month, where it put the wrong month, sometimes 00 as the month.

Any help would be appreciated.


Mark

Comments

Sign In or Register to comment.