Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of Getting a weird exception Unparseable date: “6 Aug 2012” without wasting too much if your time.
The question is published on by Tutorial Guruji team.
I got a date time format – "dd MMM yyyy", when trying to parse “6 Aug 2012”, I get an java.text.ParseException Unparseable date.
Every thing looks fine, do you see the problem?
You need to mention the Locale as well…
Date date = new SimpleDateFormat("dd MMMM yyyy", Locale.ENGLISH).parse("6 Aug 2012");
We are here to answer your question about Getting a weird exception Unparseable date: “6 Aug 2012” - If you find the proper solution, please don't forgot to share this with your team members.