title: how to php convert this time format?
body: <p>i was fetching this date from table in the database like this format</p>
  
  <pre><code>Sunday 16th of January 2011 06:55:41 PM
  </code></pre>
  
  <p>and i want to convert it to be like this format</p>
  
  <pre><code>11-05-2012
  </code></pre>
  
  <p>how to do that with date function or any function</p>
  
  <p>when i use date function</p>
  
  <pre><code> &lt;td&gt;&lt;?php echo date('d-m-Y', $v['v_created']); ?&gt;&lt;/td&gt;
  </code></pre>
  
  <p>i get error message</p>
  
  <pre><code> 'Severity: Warning
  
  Message: date() expects parameter 2 to be long, string given'
  </code></pre>