Skip to content Skip to footer navigation
🏰 Statamic Summit 2027 Feb 16–19 Talks, workshops, and three nights in a German castle. Get Tickets

Is Weekend Modifier

Returns true if date is on the weekend.

date: June 19 2012
{{ if date | is_weekend }}
@if (Statamic::modify($date)->isWeekend()->fetch()) ... @endif
false
Warning!

Date modifiers preserve the date value's timezone by default. Dated entries use UTC. Enable localize_dates_in_modifiers in config/statamic/system.php to convert dates to your display timezone before applying modifiers.

Please refer to our Timezones guide for more information.

A troll pointing a teaching stick