I\'m trying to split a date range into individual dates in the following way:
private static void splitDates(LocalDate dateFrom, LocalDate dateTo) { whil
plusDays doesn't alter the original LocalDate, you have to assign the result :
LocalDate
dateFrom = dateFrom.plusDays(1L);
Because method plusDays doesn't change variable dateFrom. You should do like this: