java - cannot parse the String to Date object -


i have string in format : 2016-08-08t10:27:06.282858+00:00.

i want parse string date object. tried

simpledateformat df = new simpledateformat("yyyy-mm-dd't'hh:mm:ss.ssssss'z'");

but i'm getting error: unparseable date: "2016-08-08t11:06:22+00:00" (at offset 19)

i tried every other format in place of 'z' 'x', 'xxx' nothing seems work.

correct format "yyyy-mm-dd't'hh:mm:ss.ssssssxxx". ' ' used escape simbols , avoid parsing them.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -