pg-calendar icon indicating copy to clipboard operation
pg-calendar copied to clipboard

is there any way to select date range via JavaScript in the calendar

Open hgsadhrakiya opened this issue 3 years ago • 2 comments

I want to select the range on the fly. So please let me know if there is any way to select date range via JavaScript in the calendar.

Thanks :)

hgsadhrakiya avatar Aug 04 '21 06:08 hgsadhrakiya

I was actually looking around for a similar answer, which may or may not suit your needs. But if you have: pickWeeks: true, multiple: true, you can then use $('.calendar').pignoseCalendar('set', '2021-11-08'); and it will set for the week range.

Hopefully that helps ya.

Saikred avatar Nov 12 '21 21:11 Saikred

Can I set an arbitrary range of dates instead of a week? How to do that?

yangyangdotcom avatar Aug 03 '23 17:08 yangyangdotcom