XF 1.5 Compare dates in xen templates

sajal

Active member
How to compare dates in xen templates?

e.g. I want to compare if $warning.is_expired is greater than today's date, any quickies here?
 

Arty

Well-known member
Code:
<xen:if is="{$warning.is_expired} > {$serverTimeInfo.now}"> stuff </xen:if>
use $serverTimeInfo.today instead of $serverTimeInfo.now if you want to compare against beginning of day.
 
Top