Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Taking your approach on designing things actually makes it fun, more natural, and overall easier.

— Dominik, Developer

is_after Modifier

Returns true if a date variable is after another date. That second date can be the name of another variable or a literal date string.

start_date: January 17 2015
end_date: December 1 2015
{{ if end_date | is_after($start_date) }}
{{ if start_date | is_after(2014) }}
{{ if start_date | is_after($end_date) }}
@if (Statamic::modify($end_date)->isAfter($start_date)->fetch()) @endif
@if (Statamic::modify($start_date)->isAfter(2014)->fetch()) @endif
@if (Statamic::modify($start_date)->isAfter($end_date)->fetch()) @endif
true
true
false
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →