Skip to content Skip to footer navigation
You are reading the Statamic 6 Alpha docs. πŸ‘€

Is Weekday Modifier

Returns true if date is a weekday.

date: December 25 2015
{{ if date | is_weekday }}
@if (Statamic::modify($date)->isWeekday()->fetch()) ... @endif
true
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.

A troll pointing a teaching stick