I am developing a java sample in which date is in string like - 2016-07-19T16:54:03.000+05:30. I want to convert it to DateTime object.How can I do it in java? I have tried this code -
DateTimeFormat.forPattern("yyyy-MM-dd'T'HH:mm:ss.SSS+Z").parseDateTime("2016-07-19T16:54:03.000+05:30")
It give java.lang.IllegalArgumentException: Invalid format: "2016-07-19T16:54:03.000+05:30" is malformed at "05:30" exception.