I need to determine whether the current entry has a publication date in the future.
That is, I need to compare the entry_date to the current_time. I would greatly prefer to do this with EE tags, without the help of PHP or plugins.
But both of these attempts:
{if "{entry_date}" > "{current_time}"}
UPCOMING EVENT
{/if}
{if "{entry_date format='%U'}" > "{current_time format='%U'}"}
UPCOMING EVENT
{/if}Result in this error:
Parse error: syntax error, unexpected T_STRING in /home/lavinias/public_html/ee_system/expressionengine/libraries/Functions.php(683) : eval()'d code on line 42And this attempt:
{if entry_date > current_time}
UPCOMING EVENT
{/if}outputs nothing, regardless.
What is the recommended method?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.