I am trying to parse a string describing a date (in French):
String dateAParser="dim 6 janv 2013 07:40:00"; SimpleDateFormat parseur = new SimpleDateFormat("EEE dd MMMM yyyy HH:mm:ss", Locale.FRENCH); try{ Date dateAllerDepart= new Date(); dateAllerDepart=parseur.parse(dateAParser); System.out.println(dateAllerDepart); }catch(Exception e){e.printStackTrace();}
This gives me the following errors:
java.text.ParseException: Unparseable date: "dim 6 janv 2013 07:40:00" at java.text.DateFormat.parse(DateFormat.java:357) at TestAvecJsoup.main(TestAvecJsoup.java:109)
I think my SimpleDateFormat object is fine, and I searched and tried a lot of things to solve this problem, so I hope you will give some tips on how to solve it. Thanks in advance.
user1870829
source share