romach
4/14/2017 - 6:48 PM

Iterate through date range

Iterate through date range

Stream.iterate(start, date -> date.plusDays(1))
    .limit(ChronoUnit.DAYS.between(start, end) + 1)
    .forEach(System.out::println);