Hi all, I have an app that does logistics type stuff. I need to get a few dates to disable on an air date/time picker plugin- thats fine.
What I cant work out is this:
I have data type ‘Car’, each ‘car’ has a list of ‘unavailable dates’ on its data type and also has a specific ‘location’. However I need to filter the disabled dates so that if I have many 'car’s in a given ‘location’, it only blocks out the disabled dates that appear in every cars unavailable dates for that location.
So I need to know how to search through multiple lists of unavailable dates of all cars in a given location and only disable the dates that appear in every cars unavailable dates. I need to search for cars in a given location, each items unavailable dates and then somehow only get a few dates which every single car in that location is booked out for. Hope that makes sense- Ive been trying the filtered advanced stuff but cant work it out. Any help would be much appreciated. thanks
Question is essentially how can I search through a list of dates that appear in every cars data type unavailable_date_ranges