Over a million developers have joined DZone.

Determine Holiday Dates for a Country/State/Region

DZone's Guide to

Determine Holiday Dates for a Country/State/Region

Free Resource

I have come across the need to determine which days are holidays for several times now. To solve this problem generally I have created the open source project Jollyday. It is an API which calculates holidays (currently non-working holidays only) for a given country, state and region for a given year. Currently it is calculating the holidays for about 60 countries world-wide out-of-the-box.

 Please see Jollyday at SourceForge (http://jollyday.sourceforge.net).

The calculation is based on XML files which contain the holiday rules for each country and should provide a possibility for anyone interested to participate in the project. Anyone is welcome to review the rules for her/his country/state/region to improve the data basis.

The API uses no database or network connection at runtime. Its only API dependency is the JODA-time API.

Everyone is welcome to give it a try and/or improve the data.

Cheers, Sven


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}