title: Getting a PHP DateTime object into a string representation of a MYSQL date
body: <p>I have a DateTime which I want to store in a Date MySQL column. I am using MySQLi and prepared statements. </p>
  
  <p>When binding parameters, I cannot specify date as a type, only strings and integers.</p>
  
  <p>How do I convert the DateTime to a MySQL date string representation? There is very little documentation on the DateTime class.</p>