• Hello Mircea N.

    Thanks for this great plugin ??

    I would like to know if it is possible to prevent certain dates or period time to be picked up, like to put them in “grey”.

    Thanks in advance for your feedback

    Cotp

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author mirceatm

    (@mirceatm)

    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 1 year, 9 months ago by cotp.
    Plugin Author mirceatm

    (@mirceatm)

    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 1 year, 9 months ago by mirceatm.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to prevent certain dates to be picked up ?’ is closed to new replies.