Is Weekend Modifier
Returns true
if date is on the weekend.
date: December 25 2015
{{ if date | is_weekend }}
@if (Statamic::modify($date)->isWeekend()->fetch()) ... @endif
false
Warning!
By default, when using a modifier on a date variable, it will be operating on the UTC date rather than the localized date.
Please refer to our Timezones guide for more information.

Docs Feedback
Submit improvements, related content, or suggestions through Github.
Betterify this page