private List<String> getStart_End(String startDT,String endDT) {
List<String> dateTime = new ArrayList<String>();
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); //加上时间
//必须捕获异常
long startTime = 0l;
long endTime = 0l;
try {
startTime = sdf.parse(startDT).getTime();
endTime = sdf.parse(endDT).getTime();
} catch (ParseException e) {
e.printStackTrace();
}
long time = 24*60*60*1000;
dateTime.add(DateUtils.dateToStr(new Date(startTime)));
while (endTime >= startTime + time) {
dateTime.add(DateUtils.dateToStr(new Date(startTime + time)));
time += 24*60*60*1000;
}
return dateTime;
}