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_between Modifier

Returns true if a date variable is between two other dates. Those dates can be the name of other variables or literal date strings.

date: November 15 2015
start_date: July 4 2015
end_date: December 1 2015
{{ if date | is_between($start_date, $end_date) }}
@if (Statamic::modify($date)->isBetween([$start_date, $end_date])->fetch()) @endif
true
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →