public static List getbetweenDateList(String startDate, String endDate){
Date start = null;
Date end = null;
try {
start = new SimpleDateFormat("yyyyMMdd").parse(startDate);
end = new SimpleDateFormat("yyyyMMdd").parse(endDate);
} catch (ParseException e) {
e.printStackTrace();
}
List res = new ArrayList();
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
Date date = start;
Calendar cd = Calendar.getInstance();
while (date.getTime()<= end.getTime()){
res.add(sdf.format(date));
cd.setTime(date);
cd.add(Calendar.DATE, 1);
date=cd.getTime();
}
return res;
}