setting the "latest date/time" in the calendar

pkornmeier 09 Apr, 2018
I would like to set in the calendar the "latest date/time" 10 days in the future, but I´m having problems with the right syntax.

{date:Y-m-d$tomorrow} set the date 1 day ahead, but I need 10 days. I tried a lot of things, but was not successfull.I

I think, I have to set up a new value for tomorrow or variable, but I don´t know how.

Any suggestion?

Thanks in advance
Pascal
healyhatman 10 Apr, 2018
Answer
{date:Y-m-d$+ 10 days}

It's using the PHP date and strtotime methods, so date:format$parameters.
date('Y-m-d', strtotime("+10 days"));
so you could do {date:D d-m-y$-1 years} to get the Day and date of this day last year.
pkornmeier 10 Apr, 2018
Hi Healyhatman,

{date:Y-m-d$+ 10 days}

works perfectly. Your the best! Thank you so much for your help.

Pascal
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger