gingerj
05-23-2006, 11:16 AM
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:
var forwardDate = currentDate+7;
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.
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....
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:
var forwardDate = currentDate+7;
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.
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....