$ts = time();
How to convert $ts
to the format 09/02/2010
?
$ts = time();
How to convert $ts
to the format 09/02/2010
?
Look at the date() function: http://au2.php.net/manual/en/function.date.php. You'd want either:
date('d/m/Y', $ts)
or:
date('m/d/Y', $ts)
Depending on the format you need ("09/02/2010" is ambiguous, it could be either).