I have string in this format "2015-11-18T00:00:00+0000". I thought it's a ISO8601 format and tried to parse it to a Joda DateTime
instance, but it told me it's malformed:
String toParse = "2015-11-18T00:00:00+0000";
DateTime date = ISODateTimeFormat.dateTime().parseDateTime(toParse);
And I got this error:
java.lang.IllegalArgumentException: Invalid format: "2015-11-18T00:00:00+0000" is malformed at "+0000"
How can I convert the above string to a DateTime
?