Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

For a software dev like me who has no idea how to create a cute hand-drawn dashed line, this course just 100% works.

— Ira Zayats, Developer

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
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →