Page 1 of 1

DatePickerField in formbuilder +1 day

Posted: Wed Sep 01, 2021 12:09 pm
by mirecek
Hello.

Can anyone advise me how to change the DatePickerField in the formbuilder the next day?
that is, how to change the parameter in DatePickerField.class.php so that today is actually the next day.
original: $ today = getDate ();

I would be grateful for all the advice.

p.s. sorry for my english o:)

Re: DatePickerField in formbuilder +1 day

Posted: Wed Sep 01, 2021 1:18 pm
by velden
Sorry to inform you that we do not allow so called code hacks to be posted in this forum.

Re: DatePickerField in formbuilder +1 day

Posted: Wed Sep 01, 2021 2:16 pm
by DIGI3
A javascript solution in your form/page template might be a better option.

Re: DatePickerField in formbuilder +1 day

Posted: Wed Sep 08, 2021 8:39 am
by mirecek
SOLVED:

$today = getDate(strtotime('+1 days'));