British Date Formatting in PHP
<pre><code>&lt;?php 
$firstdate = '2011-11-16';
$sample = date("d-m-Y", strtotime($firstdate)); 
echo $sample;
?&gt;
</code></pre>

<p>I have a column in a table with date in this format 2011-11-16
But I need it in reverse, so I've used the following code.</p>

<p>The problem is that when the date is 0000-00-00, it prints 01-01-1970.
Is there a way of making it print 00-00-0000 instead? Please note that I'm looking to reverse it to British format. 00-00-0000.</p>

<p>Thanks</p>
