ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

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.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com