class DateUtils {

	public static List getAllDatesBetweenDates(Date startDate, Date endDate, String dateFormat) {
		Date begin = new Date(startDate.getTime());
		LinkedList list = new LinkedList();
		DateFormat df = null;
		if (!Strings.isNullOrEmpty(dateFormat))
			df = new SimpleDateFormat(dateFormat);
		else{
			return list;
		}

		if (Strings.isNullOrEmpty(dateFormat)) {
			list.add(new Date(begin.getTime()));
		} else {
			list.add(df.format(begin.getTime()));
		}
		while (begin.compareTo(endDate) < 0) {
			begin = new Date(begin.getTime() + Constants.MILLIS_ONE_DAY);
			if (Strings.isNullOrEmpty(dateFormat)) {
				list.add(new Date(begin.getTime()));
			} else {
				list.add(df.format(begin.getTime()));
			}

		}

		return list;
	}

}