3
Quote:
slyss79 wrote:
hi
i have one problem: my db store date like this 1143750536 but i what to print $date like normal....
how i can do this ?
thanks...
[i have see other posts in this forum but there aren't the solution...]
bye
Use the XOOPS function for this:
formatTimestamp( $time, $format = "l", $timeoffset = "" );
$time = time in unix form.
$format = date formatting
$timeoffset = The time offest between time zones. (Not really required as dealt with in another function)
Example:
$time = time();
$format = 'D d, m, Y';
formatTimestamp( $time, $format );
Would produce the date Mon 12,06,2006