Is there some library, pattern or common way deal with workdays? I mean, is there some relatively well adopted way to know if some day is a workday and not weekend, holiday etc.?
Also, supposing there is such thing, would it be helpful to discover if the day has some “detail”? For example, here in Brazil we use to work only in the afternoon of the Ash Wednesday. Is there some kind of flexible framework for dealing with such variations?
I could implement this kind of business logic without any difficulty but I would not like to reinvent the wheel and other users suggestions can be helpful. Also, it seems a very recurrent problem.
Thanks in advance!
If you are into Java programming you can use this :
Non-working day and Holiday Handler Algorithms