$time = 1272709634; $formatted = date("Y-m-d h:i:s",$time); // Produces the format: 2010-01-01 02:30:01 Code (markup): for more information on how to use date and time check http://se.php.net/manual/en/function.date.php and http://se.php.net/manual/en/function.time.php