How to do calculation on Date object ?

Hi,

I would like to add days, months to the current date.

How would I do, which would calculate days in a month or months in a year automatically ?

What I mean by automatically is we don't have to code for 30 or 31 or 28 days for which month.

Your help would be appreciated. Please give me some kind of code if you could. Thank you.

[378 byte] By [yp_patel] at [2007-9-26 3:33:06]
# 1
Check the API docs for the Calendar and GregorianCalendar classes.Rich
rmiller1985 at 2007-6-29 12:01:17 > top of Java-index,Archived Forums,Java Programming...