Jump to content

[SOLVED] Timestamp conversion error


kpetsche20

Recommended Posts

I am trying to convert a timestamp into a readable date.

 

This is the error I am getting

Warning: date() expects parameter 2 to be long, string given in /home/snugcash/public_html/admin/listnews.php on line 66

 

Here's the code

 <td width="152" class="myaccount"><?=date("Y-m-d", $data['date']) ?></a></td>

Link to comment
https://forums.phpfreaks.com/topic/138691-solved-timestamp-conversion-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.