http://www.smarty.net/docsv2/en/language.function.php.tpl
I believe this method is deprecated so I don't recommend using it. I would modify the php code instead.
Also, check the offer variables on the template page. It's possible the date is already present. Otherwise, find the original query in the php and modify it there.