title: How do I convert a date string to my datetime format?
body: <p>I'm trying to convert a variable named <code>$releasedate</code> which contains the string <code>'May 31, 2011'</code> to the string <code>'2011-05-31 00:00:00'</code> to insert into the database.</p>
  
  <p>I have tried...</p>
  
  <pre><code>$pubdate = date('Y-m-d H:i:s',$releasedate);
  </code></pre>
  
  <p>...but it didn't work.</p>
  
  <p>How do I do this?</p>