I\'d like to parse \'2015-10-01\' with LocalDateTime. What I have to do is
LocalDateTime
LocalDate localDate = LocalDate.parse(\'2015-10-01\'); LocalDateTime
You can try
private static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy/MM/dd HH:mm:ss").withResolverStyle(ResolverStyle.LENIENT);