java 利用Calendar进行日期更改
//建立1个日期实例
Date tomorrow= new Date();
//获取今天日期
Date nowDate = Calendar.getInstance().getTime();
// 构建Calendar实例
Calendar calendars = Calendar.getInstance();
calendars.setTime(nowDate);
//日历加一
calendars.add(Calendar.DAY_OF_MONTH,+1);
tomorrow= new Date(calendars.getTimeInMillis());
//转换类型日历转字符串
String dateStr = new SimpleDateFormat("yyyyMMdd").format(tomorrow);