How can i make my date "DAY" only auto increment by 1 every time I get the date value. Example my current expire date is 20141031, after increment it will changed to 20141101.
SimpleDateFormat timestampFormat = new SimpleDateFormat("yyyyMMdd");
SimpleDateFormat timestampFormat2 = new SimpleDateFormat("dd-MM-yyyy");
String EXPDATE = common.setNullToString((String) session.getAttribute("SES_EXPDATE")); // 31- 10-2014
String tempEXPDATE = timestampFormat.format(timestampFormat2.parse(EXPDATE)); //20141031
int intExpdate = Integer.parseInt(tempEXPDATE.substring(6,8)); //30