Calculate next Business day excluding weekend and Holidays
This is my first post to the forum hoping to find a solution on this
My requirement is to find the next business day say if today is Friday and next Monday is holiday the program will return the next Tuesday
So far I am able to complete to check the weekends ,however unable to build the logic for holidays
I was thinking of creating an array list of holiday dates and the compare it with the date after checking the weekends
How should I create an arraylist of Calendar Days ? Could anyone please help me with the code ?
Thanks for the help.
Re: Calculate next Business day excluding weekend and Holidays
One way would be to create a Set of holidays stored as a class or string. Then when you think you know the next work day, check and make certain that date is not a holiday.