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

configuration parameter "events" does not select (differentiate) a date #912

Open
Lionberg opened this issue May 28, 2021 · 3 comments
Open

Comments

@Lionberg
Copy link

According the description of the Configuration parameters:
events array of dates that you would like to differentiate from regular days (e.g. ['Sat Jun 28 2017', 'Sun Jun 29 2017', 'Tue Jul 01 2017',])

I can configure such a date;

But it does not work even if I provide exact the same string from the description:

$('.datepicker').pikaday({ ... events: ['Sat Jun 28 2017', 'Sun Jun 29 2017', 'Tue Jul 01 2017',], ... });

@EricPaulson
Copy link

Same issue. This doesn't seem to work at all.

@RistoNiinemets
Copy link

This seems to work:

events: [ new Date('2021-11-03').toDateString(), new Date('2021-11-04').toDateString(), ]

@fransiskusferdian94
Copy link

This seems to work:

events: [ new Date('2021-11-03').toDateString(), new Date('2021-11-04').toDateString(), ]

It's work , but how can I dynamically do this from PHP backend? I'm using laravel livewire

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

4 participants