I have the following code:
val dateString = "12/Sep/2017:11:25:29 +0200"
println(LocalDateTime.parse(
dateString,
DateTimeFormatter.ofPattern("dd/LLL/yyyy:HH:mm:ss X")
));
and the following error:
Exception in thread "main" java.time.format.DateTimeParseException:
Text '12/Sep/2017:11:25:29 +0200' could not be parsed at index 3
What is wrong in my format? I read https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html but do not find the correct one
EDIT1: "dd/MMM/yyyy:HH:mm:ss X" does not work either