in reply to Business Date(s)
However if holidays matter to you, life is going to turn into a mess. The relevant holidays for a business depend on its country, state, city, and what industry it is in. Furthermore the definition of what the holidays will be for a given industry (eg stocks or bonds) is often only decided a few months in advance. This is particularly problematic when the holiday falls on a weekend, which weekday is a holiday? (I believe that the stock market changed its mind on how to handle Jan 1, 2000 fairly close to the date.) Also if you code a solution now and wait a few years, well the politicians will change what the holidays are so your perfectly good solution is now broken.
Plus it varies by company. For instance two companies in the same city and industry may differ on whether they are taking the Friday after Thanksgiving as a holiday. Officially it is not. Unofficially, well that is a different story.
In short, you have a simple-seeming request. But the more that you look into it, the more complex it will get, and there is no good generic solution. So my advice is to decide how important it is to get it right, and then decide on how you will maintain the holiday list going forward (because it will need maintainance). Either that or go with a known broken but mainly accurate solution like the one that merlyn gave.
|
|---|