I have a String in this format : 2016-08-08T10:27:06.282858+00:00
.
I want to parse this string to get the Date object. I tried
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'");
But I'm getting the error: Unparseable date: "2016-08-08T11:06:22+00:00" (at offset 19)
I tried every other format in place of 'Z' as 'X', 'XXX' but nothing seems to work.