/**
* 获取任意时间下个月的最后一天
* 描述:<描述函数实现的功能>.
* @param repeatDate
* @return
*/
private static String getMaxMonthDate(String repeatDate) {
SimpleDateFormat dft = new SimpleDateFormat("yyyyMMdd");
Calendar calendar = Calendar.getInstance();
try {
if(repeatDate!=null && !"".equals(repeatDate)){
calendar.setTime(dft.parse(repeatDate));
}
} catch (ParseException e) {
e.printStackTrace();
}
calendar.add(Calendar.MONTH, 1);
calendar.set(Calendar.DAY_OF_MONTH, calendar.getActualMaximum(Calendar.DAY_OF_MONTH));
return dft.format(calendar.getTime());
}