Datepicker search multiple dates in array

Hi,

I have implemented a datepicker using the following tutorial https://community.algolia.com/instantsearch.js/v2/guides/calendar-widget.html, and have it working successfully.

The only issue is that this only works for single values. Is there a way to have this search inside of an array of timestamps? For example, the data would look like this:

Event Dates: [1635724800, 1635206400, 1635984000]

The datepicker would then search for any instances from the start and end date that are contained within the array.

If this isn’t possibly with the current datepicker method, does anyone know of an alternative way to do this?

Many thanks!

1 Like