Hi ya,
I'm having trouble working with the date object. I'm trying to add seven to the current date, but if I do say something like:
That gives me the wrong date, if the date is greater than say 31, as then it won't be even a day in the calender.Code:var forwardDate = currentDate+7;
Is there a way to make sure that if the date rolls past 31 it'll go down to the 1st or something?
I hope I make sense....



Reply With Quote

Bookmarks