I have string with date in that format:
Oct 28, 2015, 05.15PM IST
So I want to parse it to Date object using SimpleDateFormat:
String date = "Oct 28, 2015, 05.15PM IST";
SimpleDateFormat format = new SimpleDateFormat("MMM dd, yyyy, hh.mmaa zzz", Locale.US);
Date myDate = format.parse(date);
But I get exception:
java.text.ParseException: Unparseable date: "Oct 28, 2015, 05.15PM IST" (at offset 22)
What am I doing wrong?