{if $var} {$var|date_format:$smarty.const.SMARTY_DATE_FORMAT} {/if}