Search This Blog

timestamp in php

<?php

$time=time();

echo 'today date is '.date('d : m : Y',$time).'<br>'.'today time is '.date('H:i:s',$time);

?>

output :
today date is 18 : 07 : 2012
today time is 17:28:43

Share Links

Related Posts Plugin for WordPress, Blogger...