class DynamoDBUtils {

    public static List<String> getISODatesByRange(long epochBegin, long epochEnd) {
        List<String> datesArray = new ArrayList<>();
        while (epochBegin <= epochEnd) {
            String date = getIso8601FromDate(new Date(epochBegin));
            datesArray.add(date);
            // Advance to next day
            epochBegin += TimeUnit.DAYS.toMillis(1);
        }

        return datesArray;
    }

}