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

Is Tomorrow Modifier

Returns true if a given date is tomorrow, using the server's time.

date: January 1, 2000
{{ if date | is_tomorrow }}
@if (Statamic::modify($date)->isTomorrow()->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.

A troll pointing a teaching stick