1. Create a date based on your text.
2. Roll the date forward.
3. Print out the result.String start = "JUL 28, 2001";
SimpleDateFormat sdf = new SimpleDateFormat("MMM dd, yyyy");
Date d = sdf.parse(start);
GregorianCalender gc = new GregorianCalendar();
gc.setTime(d);
gc.roll(Calendar.DAY_OF_YEAR, 3);
Date end = gc.getTime();
System.out.println(end);
I don't remember the behavior of the GregorianCalendar if a year boundary is crossed on the roll, so watch for it.
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.Date;
GregorianCalendar cal = new GregorianCalendar(2001,6,28);
cal.add(Calendar.DAY_OF_YEAR, 3);
Date newDate = cal.getTime();
System.out.println(newDate);