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}
Interserver | Standard & VPS Cloud Hosting | $2.50 /Month
Flexible VPS hosting platform to deploy your online projects.
Economical and balanced between processor cores, memory and storage
rated 7 times
(7)
(0)
comments: 0 / hits: 3784
/ 6 years ago, fri, sep 16, 16, 01:10:12
More From
» PHP
Comments
There are no comments for this Snippet yet