title: PHP date time and mysql
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2480186/change-date-format-in-db-or-output-to-dd-mm-yyyy-php-mysql">Change date format (in DB or output) to dd/mm/yyyy - PHP MySQL</a><br>
    <a href="https://stackoverflow.com/questions/2671145/php-convert-to-date-format-dd-mm-yyyy">PHP - Convert to date format dd/mm/yyyy</a>  </p>
  </blockquote>
  
  
  
  <p>mysql saves my date and times like this...</p>
  
  <pre><code> 2011-08-31 08:48:40
  </code></pre>
  
  <p>And when I echo them from the database this is how they appear, how can I get them to a universal format like m/d/y...</p>
  
  <p>Or does it not matter if the mysql row is not a DATE_TIME and just VARCHAR and insert it into the database how I want it??</p>
  
  <p>Thanks...</p>