O
O
okkkman2020-01-20 08:29:48
JavaScript
okkkman, 2020-01-20 08:29:48

Where can I find a suitable calendar and how can I turn off certain dates?

Hello.
I've been sitting for an hour on one task, my head is no longer cooking, but I need to finish it.
I searched through a lot of plugins and did not find anything suitable.
I would like an example of how to do the following:
There is an array of dates:

["2019-07-05","2019-07-06","2019-07-07","2019-07-18","2019-07-19","2019-07-20","2019-07-21","2019-07-22","2019-07-23","2019-07-27","2019-07-28","2019-07-29","2019-07-30","2019-08-03","2019-08-04","2019-08-05","2019-08-06","2019-08-07","2019-08-08","2019-08-09","2019-08-10","2019-08-11","2019-08-12","2019-08-13","2019-08-14","2019-08-15","2019-08-16","2019-08-17","2019-08-18","2019-08-19","2019-08-20","2019-08-24","2019-08-25","2019-08-26","2019-08-27","2019-08-28","2019-08-29","2019-08-30","2019-08-31","2019-09-01","2019-09-02","2019-09-03","2019-09-04","2019-09-05","2019-09-07","2019-09-08","2019-09-09","2019-09-10","2019-09-11","2020-07-15","2020-07-16","2020-07-17","2020-07-18","2020-07-19","2020-08-03","2020-08-04","2020-08-05","2020-08-06","2020-08-07","2020-08-08","2020-08-09"]

It is necessary on the calendar with the choice of the range of dates (range date picker), disable these dates.
And so that the following range is selected by default:
["2019-08-21","2019-08-22","2019-08-23"]
In this case, if the selected range is deleted and a person tries to select a new one, the range selection must be reset if it contains blocked dates.
For example, if we blocked from January 20 to January 23, then it is impossible to allocate from January 19 to January 24.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Chefranov, 2020-01-20
@okkkman

Maybe https://vcalendar.io/ is suitable , like there are options that you need

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question