//开始和结束时间间隔不能超过5天
Calendar calendar = Calendar.getInstance();
calendar.setTime(new SimpleDateFormat("yyyy/MM/dd HH:mm").parse(startDt), "yyyy/MM/dd HH:mm"));
//5天
calendar.add(Calendar.DAY_OF_MONTH, 5);
Date afterDay = calendar.getTime();
if (DateUtils.parse(endDt, "yyyy/MM/dd HH:mm").getTime() > afterDay.getTime()) {
throw new Exception("活动时长不得超过5天!");
}