Skip to content
Franco Mussopower pages
Code snippet

Liquid – Comparing Dates

Copy it with the button on the code. For the why and the walkthrough, see “Date Validation – Comparing Dates in Liquid”.

Liquid - Comparing DatesLiquid
{% if date_to_check <= expiry_validation_date %}
    {{ date_to_check }}
{% else %}
    <span class="glyphicon glyphicon-alert" aria-hidden="true"></span> {{ date_to_check }}
{% endif %}

Search

Book a discovery call

30 minutes. Bring your trickiest Power Pages problem — I’ll tell you honestly whether I’m the right fit.