We’re writing a Parking Spot booking app because we rent out a parking space on a nightly basis to Airbnb guests in a building where we have a few units.
How can we prevent a user from booking dates that have already been booked?
Right now we are using the calendar module and so there’s a starting date and an ending date that we are gathering from users, but is there a way to get a list of dates in between these two dates – start and end dates? If so that would seem to be one way.
Or another way- is there a way to run a search to see if a newly proposed start date (and end date) falls in between any existing start and end date?
Open to any even more efficient/better ideas… Thanks!