title: Java - Unparseable date
body: <p>I am trying to parse a date, but I am oddly getting an exception. </p>
  
  <p>This is the code:</p>
  
  <pre><code>import java.util.Date;
  
  String strDate = "Wed, 09 Feb 2011 12:34:27";
  Date date;
  SimpleDateFormat FORMATTER =  new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss");
  try {
    date = FORMATTER.parse(strDate.trim());
    System.out.println(date);
  } catch (ParseException e) {
    e.printStackTrace();
  }
  </code></pre>
  
  <p>The exception is:</p>
  
  <blockquote>
    <p>java.text.ParseException: Unparseable
    date: "Wed, 09 Feb 2011 12:34:27"     at
    java.text.DateFormat.parse(DateFormat.java:337)
      at DateTest.main(DateTest.java:17)</p>
  </blockquote>
  
  <p>I have read the <a href="http://download.oracle.com/javase/1.4.2/docs/api/java/text/SimpleDateFormat.html">documentation</a> and I think my pattern is correct. So I don't understand...</p>
  
  <p>Any idea?</p>
  
  <p>Thanks!</p>