This question already has an answer here:
I am getting the following error from the following code.
$start_date = '1452953820';
$date = date($start_date,"jS M Y");
Error: date() expects parameter 2 to be long, string given
I don't understand how to sort this, as the string is a timestamp.
Any ideas?
</div>
It should be like this,,
$date = date("jS M Y",$start_date);// swapping arguments.
See this for more information and more formats.