Hi, I am trying to figure out an IF statement based on Expiration and Entry dates but it doesn’t seem to be working.
here is what we have to start
<h3> {entry_date format="%F %d"} - {expiration_date format="%d, %Y"}</h3>This works great to show an event span such as Nov 15 - 25, 2012. However, what if an event spans two months, for example January 28 - February 3rd. In order to do this my thought is to check if the months match for the expiration_date and the entry_date and then display a different date.
{if '(expiration_date format="%F"}' == '{entry_date format="%F"}'}
Entry Month's Match Display Here
{/if}This IF statement produces a “Parse error: syntax error, unexpected T_STRING” error. What am I missing? I see the same syntax as a sample on this post: http://ellislab.com/expressionengine/user-guide/templates/date_variable_formatting.html#12935