获取下一天
```java
//下一天
public static String getTomorrow(Date date){
Calendar calendar = Calendar.getInstance(); //得到日历
calendar.setTime(date);
calendar.add(Calendar.DAY_OF_MONTH, 1); //设置为后一天
Date tomorrow = calendar.getTime(); //得到后一天的时间
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
return sdf.format(tomorrow);
}
下一个星期*
//下一个星期*
public static String getNextWeek(Date date,Integer day) {
Calendar cal = Calendar.getInstance();
cal.setTime(getThisWeekMonday(date));
cal.add(Calendar.DATE, day);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
return sdf.format(cal.getTime());
}
下一月第一天
//下一月第一天
public static String getNextMonth() throws ParseException {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date date = sdf.parse(sdf.format(new Date()));
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
calendar.set(Calendar.DAY_OF_MONTH,1);
calendar.add(Calendar.MONTH, 1);
return sdf.format(calendar.getTime());
}