title: Unable to obtain OffsetDateTime from String
body: <p>I have to obtain <code>OffsetDateTime</code> from a string value</p>
  <blockquote>
  <p>&quot;2008-11-15T17:52:58&quot;</p>
  </blockquote>
  <p>I have tried various ways but it gives this error. Please look at the below code snippet and error and provide the comments.</p>
  <p>First way to try :</p>
  <pre><code>ZonedDateTime.parse(&quot;2008-11-15T17:52:58&quot;, DateTimeFormatter.ofPattern(&quot;yyyy-MM-dd'T'HH:mm:ss.SSSZ&quot;)).toOffsetDateTime();
  </code></pre>
  <p>Second try :</p>
  <pre><code>OffsetDateTime.parse(&quot;2014-06-09T17:15:04+02:00&quot;, DateTimeFormatter.ofPattern(&quot;yyyy-MM-dd'T'HH:mm:ss.SSSZ&quot;));
  </code></pre>
  <p>I am getting this error.</p>
  <pre><code>Text '2008-11-15T17: 52: 58' could not be parsed at index 19
  </code></pre>