title: PHP date() format when inserting into datetime in MySQL
body: <p>What is the correct format to pass to the <code>date()</code> function in PHP if I want to insert the result into a MySQL <code>datetime</code> type column?</p>
  <p>I've been trying <code>date('Y-M-D G:i:s')</code> but that just inserts &quot;0000-00-00 00:00:00&quot; everytime.</p>