I was trying to compare two dates as follows (and with a few minor variants):
with no success, so ended up using this:
which works OK.
It would seem preferable to do this in a single line of code if possible ... or isn't it?
- Code: Select all
<cms:if "<cms:date k_page_date format='Y-m-d' />" ge "<cms:date format='Y-m-d' />" >
with no success, so ended up using this:
- Code: Select all
<cms:set compare_today="<cms:date format='Y-m-d'/>" />
<cms:set compare_event_date="<cms:date k_page_date format='Y-m-d' />" />
<cms:if compare_event_date ge compare_today >
which works OK.
It would seem preferable to do this in a single line of code if possible ... or isn't it?