I have a database of suppliers, they rent car. Most people rent for a range of 2-3 days. on the database i have the rent start date/time stored in as datetime format. the rent end date is also in date time format.
suppose someone wants to rent the same car, if the requested range of date falls in one of the ranges of date the car is already rented out - how can i check the availability? i am using beans, servlets and jstl on the jsp pages.
i guess it should be a comparator?