php - Convert from strtotime into date -
im trying convert timestamp date:
echo '<td>' . strtotime(mysql_result($result,$i,"datum_overboeking")) = date('d-m-y'). '</td>';
this gives me error: fatal error: can't use function return value in write context
i want strtotime output input in date ('d-m-y') output given date format.
update:
perfect works, !
but how can find way of correct syntax construction because im struggling how correctly build syntax ?
use second parameter of date function.
date('d-m-y', strtotime(mysql_result($result,$i,"datum_overboeking")));
look @ date function
Comments
Post a Comment