Saturday 07 November 2009 6:25:06 am
Instead of doing arithmetics on a timestamp, you can also use a combination of the currentdate(), datetime(), and the makedate() template operators:
{def $currentDate=currentdate()
$currentMonth=$currentDate|datetime('custom', '%n')
$tomorrowDay=$currentDate|datetime('custom', '%j')|sum(1)
$tomorrowDate=makedate($currentMonth, $tomorrowDay)}
<strong>{$tomorrowDate|l10n('shortdate')}</strong>
{undef $currentDate $currentMonth $tomorrowDay $tomorrowDate}
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
|