Is it possible to modify a date variable (entry_date in this case) so that you have entry_date plus one year (or any other amount of time)?
For example, if entry_date was 6/4/14 2:59 PM, could I add one year to that date and end up with 6/4/15 2:59 PM, and would I still be able to use that variable in a conditional statement?
EDIT: Essentially what I want is something like this:
{if (entry_date + one_year) > current_time}
<p>New Product</p>
{/if}
SECOND EDIT:
Robson, I tried the code that you added (both the regular and inverted logic) and I'm unfortunately STILL ending up with the same error. However, I continued to play around with the code and found that this does not throw an error:
{if {current_time format="%Y%m%d%H%i"} == {entry_date format="%Y%m%d%H%i"}}
less than an year
{if:else}
more than an year
{/if}
But this does throw the same error:
{if {current_time format="%Y%m%d%H%i"} - {entry_date format="%Y%m%d%H%i"} == 1}
less than an year
{if:else}
more than an year
{/if}
Do I need to change the comparative number to something more specific? Are we comparing two variables that we can't compare? Or am I just missing some bracket again? I feel like it's almost there...