Get an array of date values from dataset, and based on the values, filter a date array, to get the ones available

I think I understood what you need. You want to filter your Collection with the available rentals. Your code above where the btnSave_click function is, is not going to work properly, cause it is making a loop of query requests to the Collection.

Can you show me Collection? I want to see how you are storing what is rented and what it is not? That way, I can try to give you a solution I would implement.