Pilot Joined and Last Login Date

Tom that code work very well

<li><strong>Last Login: </strong><?php echo date(DATE_FORMAT, strtotime($pilot->lastlogin));?></li>

I have changed it to

<li><strong>Last Pirep: </strong><?php echo date(DATE_FORMAT, strtotime($pilot->lastPirep));?></li>

which also work great but a pilot without Pirep would be shown as 12/31/1969

can that be catched by an else if?

so that if that value is found it echo 00/00/0000 in my case?

Try This <?php echo date(DATE_FORMAT, strtotime($userinfo->joindate)); ?>

On 21/03/2013 at 21:16, Txmmy83 said:

Tom esse código funciona muito bem

<li> <strong> Último login: </strong> <? php echo date (DATE_FORMAT, strtotime ($ pilot-> lastlogin));?> </li>

Eu mudei para

<li> <strong> Último Pirep: </strong> <? php echo date (DATE_FORMAT, strtotime ($ pilot-> lastPirep ));?> </li>

que também funciona muito bem, mas um piloto sem Pirep seria mostrado como 31/12/1969

isso pode ser pego por um outro se?

de modo que, se esse valor for encontrado, ele ecoará 00/00/0000 no meu caso?

<?php echo date(DATE_FORMAT, strtotime($pilot->lastpirep)); ?>

23 hours ago, DarlanFernandes said:

<?php echo date(DATE_FORMAT, strtotime($pilot->lastpirep)); ?>

Be sure that any quoted text will appear in English.

1 Like