On 08-Apr-09 08:07:26, Mark Rogers wrote:
Does anyone have any ideas how (from a script) I can determine whether a date is a (UK) bank holiday?
Something I can use from PHP preferred but I'm flexible.
Since the dates aren't consistent I assume I'm going to need somewhere to look the information up, but I'm not sure where, but it seems like this ought to be a fairly "standard" need. (For my application I need to allow website customers to select a delivery date, which needs to exclude bank holidays.) I'm hoping there's a standard method.
-- Mark Rogers // More Solutions Ltd (Peterborough Office) // 0845 45 89 555 Registered in England (0456 0902) at 13 Clarke Rd, Milton Keynes, MK1 1LG
How far ahead are you thinking of planning for? There are only eight per year for England, so a 3-year look-ahead would take up a couple of dozen lines in a file which you could look up with a little 'awk' or similar script.
Add St Patrick's Day and the Battle of the Boyne for Northern Ireland; and, for Scotland: Hangover Day (2 January), their idiosymcratic Summer Bank Holiday date (4 weeks earlier than the rest), and St Andrew's Day, and you have a total of 13 per year for the UK as a whole.
"Official" data for Bank Holidays 2009-2011 can be found at
http://www.direct.gov.uk/en/Governmentcitizensandrights/ LivingintheUK/DG_073741
[all one line]
along with explanatory text. You have two days left to test your script.
Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 08-Apr-09 Time: 09:40:16 ------------------------------ XFMail ------------------------------