Which format I should use to parse a String date (using ISO 8601) in Scala?
2018-12-13T19:19:08.266120+00:00
I just try some patterns but no success. This code show me a near date as String, but when I try with a String above, with timezone info, I get error.
new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'.'SXXX").format(new Date())
Result:
2018-12-14T17:41:24.929-02:00
Error:
java.text.ParseException: Unparseable date: "2018-12-13T19:19:08.266120+00:00" at java.text.DateFormat.parse(DateFormat.java:366) ... 29 elided