title: DateTimeParseException: Text could not be parsed at index 2
body: <p>I am really confused now why the following snippet results in DateTimeParseException.</p>
  
  <pre><code>public static void main(String[] args) {
          java.time.format.DateTimeFormatter dtf = java.time.format.DateTimeFormatter.ofPattern("EEE, dd MMM yyyy HH:mm:ss zzz");
          String date = "Mon, 10 Sep 2018 23:57:09 UTC";
          System.out.println(dtf.parse(date));
  }
  </code></pre>
  
  <p>The following exception is thrown:</p>
  
  <pre><code>Exception in thread "main" java.time.format.DateTimeParseException: Text 'Mon, 10 Sep 2018 23:57:09 UTC' could not be parsed at index 2
      at java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:1949)
      at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1777)
      at com.sample.binding.bitronvideo.driver.BitronVideoRecordingDriver.main(BitronVideoRecordingDriver.java:448)
  </code></pre>
  
  <p>I would really appreciate further help.</p>
  
  <p>Thanks,
  Amit</p>