I have a timestamp stored in a session (1299446702).
How can I convert that to a readable date/time in PHP? I have tried srttotime, etc. to no avail.
Use PHP's date() function.
date()
Example:
echo date('m/d/Y', 1299446702);
1.4m articles
1.4m replys
5 comments
56.9k users