View Full Version : transform dateline
cecov74
09-03-2003, 09:16 AM
Hi, i have do a scritp and I want put the date of the post to my script and I take it from table post and record dateline but is a number 1059931375... I can traslate it? how?
Logician
09-03-2003, 09:31 AM
check "date" command in PHP manual..
all-the-vb
09-05-2003, 12:34 AM
use date (http://de2.php.net/manual/en/function.date.php) function
example
<?php
$g=1059931375;
echo $g;
$date=date("Y-m-d",$g);
echo "<br> $date";
$time=date("h:m:s
A",$g);
echo "<br> $time";
//all-the-vb
?>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.