public static LocalDate toLocalDate(int value) {
        final int day = value % 100;
        value /= 100;
        final int month = value % 100;
        value /= 100;
        final int year = value < 1000 ? value + 2000: value;
        return LocalDate.of(year, month, day);
    }
@Test
    public void shouldConvertIntWithFourDigitYearToLocalDate() {
        final LocalDate ld = LocalDate.of(2013, 8, 30);
        assertEquals(ld, DateUtils.toLocalDate(20130830));
    }