Forum Moderators: coopster
<?php
$format = '%d/%m/%Y %H:%M:%S';
$strf = strftime($format);
echo "$strf\n";
print_r(strptime($strf, $format));
?>
I am generating data from a db to xml which gives date as
<date>1187079740</date> Now my task is to convert SPECIFICALLY the value 1187079740 into it's actual textual form of 14/08/2007 13:52:20.
I want the data 1187079740 to be written into a php script to generate it's textual time.
You can get the details PHP:Date - Manual [php.net]
Habtom