title: Create a mysql date from month and year
body: <p>If I have a value like so:</p>
  
  <pre><code>month: 5
  year: 2002
  </code></pre>
  
  <p>How can I use PHP to get this as a MySQL datestamp? </p>
  
  <p>If I use the standard date() function <code>$datetime = date('Y-m-d H:i:s')</code>, I need to add the other fields. </p>