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”.
{% if date_to_check <= expiry_validation_date %}
{{ date_to_check }}
{% else %}
<span class="glyphicon glyphicon-alert" aria-hidden="true"></span> {{ date_to_check }}
{% endif %}