title: java converting date in string format to timestamp
body: <p>I am trying to convert a date in this format: <strong>"Fri Mar 1, 2013 4:30 PM"</strong>  to a
   timestamp value in this format:   <strong>yyyy-mm-dd hh:mm:ss</strong>. </p>
  
  <p>example: </p>
  
  <p><code>String str = 'Fri Mar 1, 2013 4:30 PM'</code> should output: <code>"2013-01-14 23:59:59"</code></p>
  
  <p>Here is what I've tried:</p>
  
  <pre><code>String string = "January 2, 2010";
  Date date = new SimpleDateFormat("MMMM d, yyyy", Locale.ENGLISH).parse(string); 
  System.out.println(date);
  </code></pre>
  
  <p>This outputs: <code>Sat Jan 02 00:00:00 GMT+05:30 2010</code></p>
  
  <p>Thanks in Advance</p>