title: OffsetDateTime to Date Android
body: <p>I am getting an <code>OffsetDateTime</code> from our backend in a <code>String</code> format like this:</p>
  
  <pre><code>"2017-07-15T10:52:59Z"
  </code></pre>
  
  <p>I am trying to parse this <code>String</code> to a Android <code>Date</code>:</p>
  
  <pre><code>private SimpleDateFormat mSimpleDateFormat;
  private static final String DATE_FORMAT_PATTERN = "yyyy-MM-dd'T'HH:mm:ss";
  mSimpleDateFormat = new SimpleDateFormat(DATE_FORMAT_PATTERN, Locale.getDefault());
  
  Date newDate = null;
  String dateString = notice.getCreated();
  
  try {
      newDate = mSimpleDateFormat.parse(dateString);
  } catch (ParseException e) {
      LogHelper.showExceptionLog(MyClass.class, e);
  }
  </code></pre>
  
  <p>It always throws:</p>
  
  <blockquote>
    <p>Unparseable date: "2017-07-15T10:52:59Z"</p>
  </blockquote>