title: How to format a DATETIME for database insertion?
body: <p>I have a database that people post to and the posts get inserted.</p>
  
  <p>I want to log the date and time in the database too, using the <code>DATETIME</code> column type. How would I do this using the <code>date()</code> function?</p>