6
Compare dates in smarty
rated 6 times
[
6]
[
0]
/ comments: 0 / hits: 1787
/ 3 years ago, fri, sep 16, 2016, 13:10:12
Compare dates in smarty template file
{if {$date1|date_format:"%y%m%d"} lt {$date2|date_format:"%y%m%d"}}
foo
{/if}
or
{if {$date|date_format:"%y%m%d"} lt {$smarty.now|date_format:"%y%m%d"}}
foo
{/if}
More From
» PHP