You'll need the first and last Monday in May, the last Monday in August, the two working days after Christmas (if Christmas falls on a weekend), an Easter calculator, any other non-English Bank Holidays, and overrides to cope with events like the Queen's Golden Jubilee and other random Acts of Parliament.
Good luck. Tim.
2009/4/8 Mark Rogers mark@quarella.co.uk:
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
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!