I am trying to parse datetime string with SimpleDateFormat.parse()
but I keep receiving Unparseable date exceptions.
Here is the date format I am trying
I believe that SimpleDateFormat will not parse timezones with a colon in them (-08:00). It should be able to parse the date 2011-10-06T12:00:00-0800
.
Some simple string manipulation should help you get rid of the colon.
Try with
SimpleDateFormat dateParser = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssz");