Hi!
Please try using min
and max
For instance:
[datepicker* myFirstDatepicker id:myFirstDatepicker format:dd.mm.yy min:2022-06-06 max:2022-08-08 placeholder:"day.month.year"]
Thread Starter
cotp
(@cotp)
Hello Mircea and thanks for answering my message.
I use the datepicker on a form where people register for an event but sometimes I would like to make it not possible to choose certain dates.
For now I use this:
[datepicker* date-myfield1 id:date-myfield1 format:dd.mm.yy min:2023-01-01 max:2033-08-08]
Now what if I want let’s say to forbid February 11 2023 to be chosen or also to forbid period of time from February 22 2023 to February 27 2023 to be chosen ?
Is that possible ? What should I write ?
Thanks again,
Cotp
-
This reply was modified 2 years, 5 months ago by
cotp.
Hi!
You can try datepicker plus
It has support to exclude individual dates or date intervals:
[datepickerplus myFirstDatepicker id:myFirstDatepicker format:dd.mm.yy min:2023-02-06 max:2023-03-08 nmrexclude:2023-02-26|2023-02-20_2023-02-24]
-
This reply was modified 2 years, 5 months ago by
mirceatm.