title: Parse datetime with ISO format in Scala
body: <p>Which format I should use to parse a String date (using ISO 8601) in Scala?</p>
  
  <blockquote>
    <p>2018-12-13T19:19:08.266120+00:00</p>
  </blockquote>
  
  <p>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.</p>
  
  <pre><code>new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'.'SXXX").format(new Date())
  </code></pre>
  
  <p>Result:</p>
  
  <blockquote>
    <p>2018-12-14T17:41:24.929-02:00</p>
  </blockquote>
  
  <p>Error:</p>
  
  <blockquote>
    <p>java.text.ParseException: Unparseable date:
    "2018-12-13T19:19:08.266120+00:00"   at
    java.text.DateFormat.parse(DateFormat.java:366)   ... 29 elided</p>
  </blockquote>