Use PHP's
date()
function.
Example:
echo date('m/d/Y', 1299446702);
I just added H:i:s to Rocket's answer to get the time along with the date.
echo date('m/d/Y H:i:s', 1299446702);
Output: 03/06/2011 16:25:02
timestamp to date convert in php
No comments:
Post a Comment