Changing type of dates from ints to java's time class LocalDate