configuration parameter "events" does not select (differentiate) a date
Lionberg opened this issue · comments
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',], ... });
Same issue. This doesn't seem to work at all.
This seems to work:
events: [ new Date('2021-11-03').toDateString(), new Date('2021-11-04').toDateString(), ]
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