title: Formatting an SQL timestamp with PHP
body: <p>I have a mySQL database with a timestamp field. It currently only has one entry while I'm testing, it is</p>
  
  <pre><code>2010-02-20 13:14:09
  </code></pre>
  
  <p>I am pulling from the database and using</p>
  
  <pre><code>echo date("m-d-Y",$r['newsDate'])
  </code></pre>
  
  <p>My end result is showing as</p>
  
  <pre><code>12-31-69
  </code></pre>
  
  <p>Anyone know why?</p>
  
  <p>Edit:
  editedit:
  disregard that edit... the FTP addon for notepad++ timed out and unfortunately doesn't display an error when it can't synch.</p>