title: Parser Exception for format EEEE, MMMM d, YYYY h:mm:ss a z
body: <p>I'm getting parser exception on trying to parse string value:</p>
  
  <pre><code>"Thursday, July 27, 2006 10:10:02 PM PST" 
  </code></pre>
  
  <p>To format:</p>
  
  <pre><code>"EEEE, MMMM d, YYYY h:mm:ss a z"
  </code></pre>
  
  <p>This is the program sample:</p>
  
  <pre><code>DateTime.parse("Thursday, July 27, 2006 10:10:02 PM PDT", DateTimeFormat.forPattern("EEEE, MMMM d, yyyy h:mm:ss a z"));
  </code></pre>
  
  <p>And this is the error message:   </p>
  
  <pre><code>Invalid format: "Thursday, July 27, 2006 10:10:02 PM PDT" is malformed at "PDT"
  </code></pre>
  
  <hr>
  
  <p>this is my sample program</p>
  
  <pre><code>String str = "Thursday, July 27, 2006 10:10:02 PM PDT"; 
  DateTimeFormatter formatterDateTime = DateTimeFormat.forPattern("EEEE, MMMM d, YYYY h:mm:ss a z");
  try{
      DateTime dt = DateTime.parse(str, formatterDateTime);
  }catch(Exception ex)
  {
      System.out.println(ex.getMessage());
  }
  </code></pre>