This function will format the date and time accordingly to the site and user offset. You can either use the standard formats for PHPFusion like shortdate, longdate, forumdate and newsdate, or your own.
Quote
showdate ( string $format, int $val )
<?php
// Time used in forum
echo showdate("forumdate", time());
// Short date
echo showdate("shortdate", time());
?>
<?php
echo showdate("%m/%d/%y", time());
?>