Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiDates Picker / Disable dates #264

Open
philquarter24 opened this issue Oct 26, 2021 · 0 comments
Open

MultiDates Picker / Disable dates #264

philquarter24 opened this issue Oct 26, 2021 · 0 comments

Comments

@philquarter24
Copy link

I'm using Multi Dates Picker for Jquery for a booking application and it works well !
To disable "allready booked" dates, i use and .inc file containing dates to disable.
example:
'07/31/'+y, '08/01/'+y, '08/02/'+y, '08/03/'+y, '08/04/'+y, '08/05/'+y, '08/06/'+y, // resa 21-138
'08/07/'+y, '08/08/'+y, '08/09/'+y, '08/10/'+y, '08/11/'+y, '08/12/'+y, '08/13/'+y, // resa 21-154
'08/14/'+y, '08/15/'+y, '08/16/'+y, '08/17/'+y, '08/18/'+y, '08/19/'+y, '08/20/'+y // resa 21-163
For the actual year it works well, the y parameter is correctly supported.
But if i want to disable a date for the next year (ex 2022) it does't work.
I've tried: '08/20/'+2022 format, '08/20/'+y+1 format , '08/20/2022' format ... it still does'nt work.
What is the correct format to disable any date / year ?
Thanks for yr help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant