title: Convert String to Date Object in Java
body: <p>I need to parse the following string into a date object in java:</p>
  
  <pre><code>String time = "Jul 24 2012 05:19:34";
  DateFormat df = new SimpleDateFormat("MM dd yyyy HH:mm:ss");
  Date date = df.parse(time);
  </code></pre>
  
  <p>The code throws this exception:</p>
  
  <pre><code>Unparseable date: "Jul 24 2012 05:19:34"
  </code></pre>
  
  <p>Does anyone know how to fix this?</p>