Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

convert timestamp to date php


<?php
$date = new DateTime();
echo $date->format('U = Y-m-d H:i:s') . "
";

$date->setTimestamp(1171502725);
echo $date->format('U = Y-m-d H:i:s') . "
";
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #convert #timestamp #date #php
ADD COMMENT
Topic
Name
3+7 =