Is Past Modifier
Returns true if date is in the past.
date: October 21 2015
another_date: November 2019
{{ if date | is_past }}
{{ if another_date | is_past }}
@if (Statamic::modify($date)->isPast()->fetch()) ... @endif
@if (Statamic::modify($another_date)->isPast()->fetch()) ... @endif
true
false
Warning!
By default, when using a modifier on a date variable, it will be operating on the UTC date rather than the localized date.
Please refer to our Timezones guide for more information.