[Edit]
+
0
-
0
Java convert String to LocalDate
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17// Format - E, MMM dd yyyy import java.time.LocalDate; import java.time.format.DateTimeFormatter; public class LocalDateExample { public static void main(String[] args) { DateTimeFormatter formatter = DateTimeFormatter.ofPattern("E, MMM dd yyyy"); String date = "Sat, Oct 12 2019"; LocalDate localDate = LocalDate.parse(date, formatter); System.out.println(localDate); System.out.println(formatter.format(localDate)); } }