I have a table of data sorted by date, from which a user can select a set of data by supplying a start and end date. The data itself is non-continuous, in that I don’t have data for weekends and public holidays.
I would like to be able to list all the days that I don’t have data for in the extracted dataset. Is there an easy way, in Java, to go:
- Here is an ordered array of dates.
- This is the selected start date. (The first date in the array is not always the start date)
- This is the selected end date. (The last date in the array is not always the end date)
- Return a list of dates which have no data.
You could create a temp list and x it as needed.
(Not actual Java. Sorry, my memory of it is horrible.)