I've got the following German date: So, 18 Jul 2021 15:24:00 +0200
I'm unable to parse it using Java Time:
DateTimeFormatter.ofPattern("EEE, dd MMM yyyy HH:mm:ss Z", Locale.GERMANY)
.parse("So, 18 Jul 2021 15:24:00 +0200", Instant::from)
as it throws: Text 'So, 18 Jul 2021 15:24:00 +0200' could not be parsed at index 0
If I were to change the string to be properly formatted it works:
-So, 18 Jul 2021 15:24:00 +0200
+So., 18 Juli 2021 15:24:00 +0200
Is there any magic pattern to parse the above date?
I've also got the same problem for other dates
LocalDateTime.parse("ven, 16/07/2021 - 09:49", DateTimeFormatter.ofPattern("EE, dd/MM/yyyy - HH:mm", Locale("fr")))venmust beven.
LocalDateTime.parse("vr, 23 apr 2021 17:04:00", DateTimeFormatter.ofPattern("EE, dd MM yyyy HH:mm:ss", Locale("nl")))aprmust be04(in order to useMM)