Date start = DateUtils.addDays(new Date(), -14);
Date end = DateUtils.addDays(new Date(), -3);
Date startTime = getStartDate(start);
Date endTime = getFinallyDate(end);
public static Date getStartDate(Date date) {
String temp = format.format(date);
temp += " 00:00:00";
try {
return format1.parse(temp);
} catch (Exception e) {
return null;
}
}