National Holidays
Posted: Sun Dec 31, 2006 4:07 am
I'm writing a calendar system at the moment, and one small aspect of it is to highlight dates that are national holidays. This presents a bit of a challenge. Fortunately, being in the UK, I can work out most of them programmatically, but the government here has had a bit of fun the last few years moving them temporarily for special occasions (the Queen's Golden Jubilee for example). I imagine the same sort of thing happens in other countries too.
This leaves me with a few options.
Thoughts?
This leaves me with a few options.
- Code a system to calculate them and ignore the fact they might be wrong occasionally.
- Code the next 5 years worth into the database, add an admin option to add/remove/change them.
- A combination of the two options above.
- Write a web service that runs on my site that feeds holiday dates, and make the application grab them every week so that I can change them remotely.
Thoughts?