I am looking for a better way checking if a List of java.util.Date objects (ArrayList, which is returned to me). The scenario is, I am returned a List of dates, and I would like to find out if a date I have on hand is within the List of dates I was returned.
Currently what I am doing is looping the List and using JodaTime to compare the dates.
Note: Only the date part should be considered while comparing the dates (not the time part).
Write your own Comparator. You could use this to perform the individual comparisons of the
Dateobjects(typed with fat fingers on iPad, rocking 3 month old to sleep, apologies for minor mistakes)