title: Date Format is not working
body: <p>i have a string that is like this <code>2012/10/12 10:03:46</code> (Year/Month/Day) format now i want to change its format to something like this <code>October 12, 2012 10:03 p.m</code> i have tried php's DateTime class but its not working:</p>
  
  <pre><code>&lt;?php
  
   $date = new DateTime();
   $date-&gt;createFromFormat('Y/m/dd H:i:s', substr($suggestion-&gt;suggestion-&gt;created_at, 0,19));
   echo $date-&gt;format('d-m, y h:i A');
  
  ?&gt;
  </code></pre>
  
  <p>can anyone tell me whats wrong and how can i correct it??</p>