Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

This course is the most refreshing take on teaching design that I've come across.

— Mikaël Sévigny, 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 →