Good day!
Tell me what could be the problem. I need to convert the pattern of the form "dd MMM yyyy" to LocalDate, but constantly throws out, on the one hand, a clear one, on the other - an incomprehensible "Text '16 Sep 2006 'could not be parsed at index 3".
import java.time.LocalDate; import java.time.format.DateTimeFormatter; ... String date1 = "16 Sep 2006"; DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd MMM yyyy"); LocalDate dateLocal = LocalDate.parse(date1, formatter); I tried different variations of patterns, but always the same thing, it seems like it should work. : /
16 Сен 2006September16 Сен 2006-index 3- just shows the first character of the month - Barmaley16 сен 2006Sep with a lowercase letter - cadmy