Given a date i need to determine if x days from this date is a holiday or a weekend. If it is, i have to get the first non-holiday or non-weekend date. I will like to do this for different countries. I am using php 4 version.
| SitePoint Sponsor |
Given a date i need to determine if x days from this date is a holiday or a weekend. If it is, i have to get the first non-holiday or non-weekend date. I will like to do this for different countries. I am using php 4 version.
Prov. 13:20 - He that walketh with wise men shall be wise: but a
companion of fools shall be destroyed
...
You would need a list of these holidays in a standard format, then simply create the future date and check against your list for its presence.
Now, how you go about creating this definitive list of local & global holidays will be the issue.
@AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

Could it be PEAR Date Holidays?

Is there any day of the year that isn't a holiday somewhere?
Stephen J Chapman
javascriptexample.net, Book Reviews, follow me on Twitter
HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
<input name="html5" type="text" required pattern="^$">
Bookmarks