Date specific conditional Hi I'm trying to template out a simple conditional that shows content if the date set in a date field is greater or equal to today, and I can't seem to get the syntax quite right.

I have tried this:

{% if entry.promoEndDate|date ('&gt;= ' ~ now) %}
    &lt;p class="price--notes"&gt;Price valid until {{ entry.promoEndDate | date('d M Y') }}&lt;/p&gt;
{% endif %}


And this:

{% if entry.promoEndDate | date &gt;= now | date %}
    &lt;p class="price--notes"&gt;Price valid until {{ entry.promoEndDate | date('d M Y') }}&lt;/p&gt;
{% endif %}


Both don't yield the result I'm looking for.
Probably missing something really simple here but looked at it too long now.

Thanks in advance
You should be able to just compare the two dates directly.

{% if entry.promoEndDate &gt;= now %}
    &lt;p class="price--notes"&gt;Price valid until {{ entry.promoEndDate|date('d M Y') }}&lt;/p&gt;
{% endif %}