Laravel 4 timestamp format
<p>I'm using Laravel 4 and I want to display created_at. It is timestamp.
I display it in this way - it should be in this format -<code>Y.m.d / h:i</code></p>

<p>but it shows wrong result. Column created_at in database has value -</p>

<p><code>2016-05-18 00:00:00</code></p>

<p>but when I display it in this way it shows:</p>

<p><code>2016.05.18 / 12:00</code></p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>@if($data-&gt;created_at !== '0000-00-00 00:00:00') 
{{date('Y.m.d / h:i', strtotime($data-&gt;created_at)) }}
@endif</code></pre>
</div>
</div>
</p>