title: How to put date format in php
body: <p>I have some php code that calls a date with $modified[$x] that I need formatted to (D, d M Y H:i:s T) for an RSS feed.</p>
  
  <p>the date looks like <code>20130306</code> when it currently displays</p>
  
  <p>the time should be 10am</p>
  
  <p>I have been trying to use <code>date_format($date, 'D, d M Y H:i:s')</code>, but I can't get it to work</p>
  
  <p>the array I am trying to format is built with
      $modified[$x]=$year . $month . $day;</p>