7
Compare dates in smarty
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}
rated 7 times
(7)
(0)
comments: 0 / hits: 2801
/ 5 years ago, fri, sep 16, 16, 01:10:12
More From
» PHP
Comments
There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account