Certain fields such as the day of week fields and/or AM/PM marker may not match those from your default Locale
. ParseException
has the method getErrorOffset to determine exactly where the pattern does not match.
try
DateFormat format =
new SimpleDateFormat("EEE M/dd hh:mm a yyyy", Locale.ENGLISH);