I would like to parse a date. My String date is \"Thu Jan 19 2012 08:00 PM\". And my code to parse is:
format = new SimpleDateFormat(\"EEE MMM dd yyyy hh:mm
Try setting a Locale such as US in this case:
SimpleDateFormat format = new SimpleDateFormat("EEE MMM dd yyyy hh:mm aaa",Locale.US); format.parse("Thu Jan 19 2012 08:00 PM");