localDate formats code example
Example 1: format localdatetime
String str = "1986-04-08 12:30";
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm");
LocalDateTime dateTime = LocalDateTime.parse(str, formatter);
Example 2: get LocalDate in specified format
Format LocalDate in Java to required string