import java.util.Calendar;
int Date;
int Month;
int Year;
public static void main(String args[]) {
Calendar calendar = Calendar.getInstance();
Date = calendar.get(Calendar.DAY_OF_MONTH);
Month = calendar.get(Calendar.MONTH);
Year = calendar.get(Calendar.YEAR);
}
String dt = "2008-01-01"; // Start date
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
c.setTime(sdf.parse(dt));
c.add(Calendar.DATE, 1); // number of days to add
dt = sdf.format(c.getTime()); // dt is now the new date