No need to specify the format by hand. It’s already built-in.
final String createdDateStr = "20110920";
final DateTimeFormatter formatter = DateTimeFormatter.BASIC_ISO_DATE;
final LocalDate localDate = LocalDate.parse(createdDateStr, formatter);
System.out.println(localDate);
This outputs:
2011-09-20