Something like: Date date = .. your date .. Calendar cal = Calendar.getInstance(); cal.setTime(date); cal.set(Calendar.DAY_OF_MONTH, 1); cal.add(Calendar.MONTH, 4);
Hen On Fri, 11 Jul 2003, neil wrote: > Hi, I've been experimenting with a couple of classes from the java.util > package, but I havent been able to solve my problem. > > If I am given a date, and I want to return a date representing 90 days after > the first of the next month, what should I do? > > example : If I am given 13 March 2003, I must return a date exactly 90 days > after the 1st April 2003 > > > > _______________________________________________ > Juglist mailing list > [EMAIL PROTECTED] > http://trijug.org/mailman/listinfo/juglist_trijug.org > _______________________________________________ Juglist mailing list [EMAIL PROTECTED] http://trijug.org/mailman/listinfo/juglist_trijug.org
