I am having similar problems to Unable to parse DateTime-string with AM/PM marker
I even tried the solution provided in that link but it did not help.
SimpleDateFormat timingFormat = new SimpleDateFormat("h:mm a", Locale.US);
Date l = timingFormat.parse(time);
but I keep receiving java.text.ParseException: Unparseable date: "12:34". When i enter 12:34 AM