Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

National holiday web service [closed]

Is there a public/government web service that I can call to find out what the national holidays are for a given year? (For the US and/or any country in the world.)

Edit: Does anybody have a set of formulas to calculate US holidays? (C# would be my language of choice if there is a choice.)

like image 708
Guy Avatar asked Sep 12 '08 20:09

Guy


3 Answers

You can try http://kayaposoft.com/enrico/. Enrico Service is a free service providing public holidays for several countries including US. Public holidays for the countries like US or Germany are provided separately for each state. You can use either web service or json to get public holidays from Enrico.

like image 155
Juraj Majer Avatar answered Nov 02 '22 11:11

Juraj Majer


There's a web service at http://www.holidaywebservice.com which will provide dates of holidays for the USA, Republic of Ireland, England and Scotland. They also sell a DLL and source code.

As for details of algorithms, you could do worse than check out the excellent Calendrical Calculations book (third edition), which is a really fascinating read for all matters calendrical, and includes sample LISP code for their calendar algorithms.

like image 44
Ian Nelson Avatar answered Nov 02 '22 09:11

Ian Nelson


There are online calendars you can subscribe to. For example, Google provides US Holidays:

ICAL HTML

like image 30
Brandon Avatar answered Nov 02 '22 10:11

Brandon