Monday, February 2, 2004 06:45 AM
Take a look at java.util.Calendar and the add() method.
Tuesday, January 13, 2004 02:44 AM
Use the Calendar class. Calendar.getInstance(_LOCALE_) returns a calendar usable for this locale (for all western calendars this will be GregorianCalendar). If you need a very special calendar (13 months a year, never heard of this) you have to implement it. But in general an implementation of Calendar has all needed functions for calendar manipulation. And i suggest follow this rule: only use the static variables to check things (weekday 0 is not allways monday, so check for MONDAY).
The implemented GregorianCalendar is powerful and did allways satisfied my needs...