I'm having a blade form picking up the values from the database. In it I have a date
field not required to be filled. When you register an empty date, the results screen displays the date "01/01/1970"
. How do I change this behavior? I would like it to appear empty when the variable is empty.
<th><a href="{{ URL::to('contas?sort=datapagamento') }}">Data de Pagamento</a></th>
<td>{{ date("d/m/Y", strtotime($conta->datapagamento)) }}</td>