Originally posted by Paul Sturrock:
I think you should have a look at the Calendar object and its roll(int field, int value) method, which you should find a little easier to use.
But the roll methods only takes care of the field you use, not the larger fields though. For example, if today is June 4, and I want it to be 30 days ago, then only the Day dispaly will be correct not the month, any other suggestions?