This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

AcmeGareth
AcmeGareth

Hello all, I have tried a few different methods such as {{ date|strftime('%Y-%m-%d') }} but I cannot seem to find a way to display tomorrows date instead of today. Any help will be greatly appreciated

ndcisiv
ndcisiv

This should work just fine.

{{ "now"|date_modify('+1 day')|date('Y-m-d') }}

AcmeGareth
AcmeGareth

ndcisiv said:

This should work just fine.

{{ "now"|date_modify('+1 day')|date('Y-m-d') }}

That is exactly what I was looking for, thank you!

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.