/** * Smarty string_format modifier plugin * * Type: modifier<br> * Name: fdate<br> * Purpose: format date * @link http://smarty.php.net/manual/en/language.modifier.string.format.php * string_format (Smarty online manual) * @author Monte Ohrt <monte at ohrt dot com> * @param string * @param string * @return string */ function smarty_modifier_fdate($string, $format = 'd.m.Y') { return CUtils::fdate($string, $format); }