posted 23 years ago
Hello all. I've got a question / problem using Calendar.roll(). It's probably just me understanding how things work (usually is), but before I code a workaround, I want to make sure I'm doing this right. What I'm trying to do is take an input date, then advance it by a certain number of months.
For example:
Here's the output, based on the current date of 2002-03-26:
But what I REALLY want to see is this:
..where the year is also incremented by adding one month each time once January is reached.
My question is, will I have to explicitly code for this: check to see if we're currently up to December, then increment the month AND year?
Thanks,
Rick <><