I have a String, 2013-10-07T23:59:51.205-07:00, want to convert this to Java date object. I am getting parsing error.
2013-10-07T23:59:51.205-07:00
date = new SimpleDateForma
You should use XXX for the format -07:00, instead of Z and X.
XXX
-07:00
Z
X
Date sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSXXX") .parse("2013-10-07T23:59:51.205-07:00");
Look at the example of this docs.