title: Unable to parse DateTime-string with AM/PM marker
body: <p>The string I want to format looks like this:
  String datetime = "9/1/10 11:34:35 AM"</p>
  
  <p>Following pattern for SimpleDateFormat works:</p>
  
  <pre><code>SimpleDateFormat sdf = SimpleDateFormat("M/d/yy h:mm:ss");
  Date d = sdf.parse(datetime);
  System.out.println(d);
  
  Output&gt; [Wed Sep 01 11:34:35 CEST 2010]
  </code></pre>
  
  <p>However I need to parse the AM/PM marker as well, and when I add that to the pattern I receive an exception.</p>
  
  <p>Pattern that doesn't work:</p>
  
  <pre><code>SimpleDateFormat sdf = SimpleDateFormat("M/d/yy h:mm:ss a");
  </code></pre>
  
  <p>I have tried with this also with same exception:</p>
  
  <pre><code>SimpleDateFormat sdf = SimpleDateFormat("M/d/yy h:mm:ss aa");
  </code></pre>
  
  <p>Exception:</p>
  
  <pre><code>java.text.ParseException: Unparseable date: "9/1/10 11:34:35 AM"
  </code></pre>
  
  <p>I have looked through the API at <a href="http://download.oracle.com/javase/1.4.2/docs/api/java/text/SimpleDateFormat.html#text" rel="noreferrer">http://download.oracle.com/javase/1.4.2/docs/api/java/text/SimpleDateFormat.html#text</a> but canät seem to find where I do wrong.</p>
  
  <p>Any suggestions?</p>