kpetsche20 Posted December 29, 2008 Share Posted December 29, 2008 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> Quote Link to comment Share on other sites More sharing options...
awpti Posted December 29, 2008 Share Posted December 29, 2008 So, what is the content of $data['date']? It's obviously not what it expects. Quote Link to comment Share on other sites More sharing options...
kpetsche20 Posted December 29, 2008 Author Share Posted December 29, 2008 it's a timestamp 1230520015 That error is showing up, but the date is also displaying, so I just need to get rid of the error Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.