All Projects โ†’ commenthol โ†’ Date Holidays

commenthol / Date Holidays

Licence: other
worldwide holidays

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Date Holidays

Countries States Cities Database
๐ŸŒ World countries, states, regions, provinces, cities, towns in JSON, SQL, XML, PLIST, YAML, and CSV. All Countries, States, Cities with ISO2, ISO3, Country Code, Phone Code, Capital, Native Language, Timezones, Latitude, Longitude, Region, Subregion, Flag Emoji, and Currency. #countries #states #cities
Stars: โœญ 1,130 (+122%)
Mutual labels:  countries, region
Aws list all
List all your AWS resources, all regions, all services.
Stars: โœญ 263 (-48.33%)
Mutual labels:  region
geo-sql-database
Continents, Sub-Continents, Countries, States, Cities, Timezones, Currencies SQL database.
Stars: โœญ 30 (-94.11%)
Mutual labels:  countries
agegate
A simple function that verifies a date of birth against a country's legal drinking age.
Stars: โœญ 16 (-96.86%)
Mutual labels:  countries
visited-countries
๐ŸŒŽ Countries I Have visited
Stars: โœญ 25 (-95.09%)
Mutual labels:  countries
test-your-markup
Just a game, made for fun, to test developers HTML5 and JavaScript knowledge, and typing speed!
Stars: โœญ 12 (-97.64%)
Mutual labels:  countries
Overseer
Tool for analyzing Starcraft 2 maps by region decomposition
Stars: โœญ 13 (-97.45%)
Mutual labels:  region
Getcountries
MySQL, Firebird, XML, JSON, CSV or YAML generator for custom Countries data.
Stars: โœญ 343 (-32.61%)
Mutual labels:  countries
laravel-addressable
No description or website provided.
Stars: โœญ 12 (-97.64%)
Mutual labels:  countries
countriesNowAPI
CountriesNow is an Open source API for retrieving geo-information for countries, including their states, cities, population, etc. ๐ŸŒŽ
Stars: โœญ 78 (-84.68%)
Mutual labels:  countries
covid-19
COVID-19 World is yet another Project to build a Dashboard like app to showcase the data related to the COVID-19(Corona Virus).
Stars: โœญ 28 (-94.5%)
Mutual labels:  countries
jbanking
A Java banking API
Stars: โœญ 58 (-88.61%)
Mutual labels:  countries
oracle-geo-data
demo.insum.ca/ords/f?p=131
Stars: โœญ 20 (-96.07%)
Mutual labels:  countries
cnregion
2009-2021 ๅนดไธญๅ›ฝๅ…จๅ›ฝ๏ผˆ็œใ€ๅธ‚ใ€ๅŽฟใ€ไนก/้•‡ใ€ๆ‘/่ก—้“๏ผ‰ไบ”็บง่กŒๆ”ฟๅŒบๅŸŸๆ•ฐๆฎ
Stars: โœญ 154 (-69.74%)
Mutual labels:  region
Jdists
A feature rich code block preprocessing tool.
Stars: โœญ 323 (-36.54%)
Mutual labels:  region
china regions
Ruby Library for China Regions
Stars: โœญ 23 (-95.48%)
Mutual labels:  countries
rails-countries
Integration between Rails and countries gem.
Stars: โœญ 17 (-96.66%)
Mutual labels:  countries
civicstack
A repository for open source civic tools from many countries and organizations
Stars: โœญ 36 (-92.93%)
Mutual labels:  countries
Easyvpn
Easily connect to a VPN in a country of your choice.
Stars: โœญ 492 (-3.34%)
Mutual labels:  countries
React Native Phone Verification
The best React Native example for phone verification (an alternative to Twitter Digits).
Stars: โœญ 332 (-34.77%)
Mutual labels:  countries

date-holidays

world-wide holidays in gregorian calender

NPM version Build Status

This module provides dates of holidays for various countries, states and regions by type while considering the applicable timezone.

The features are:

  • calculation of public, bank and observance holidays for different countries, state, region, following ISO 3166-2
  • consideration of timezones for holiday checks
  • consideration of start and end time dependent on timezone
  • substitute days
  • multi-language support for all holiday names
  • setting of custom holidays
  • uses own grammar for calculation of days
  • support for islamic calendar from 1970 to 2080 (islamic dates might not be correct as they are subject to the sighting of the moon)
  • support for hebrew calendar from 1970 to 2100
  • support for chinese calendar
  • for generation of iCal calendar check out date-holidays-ical

Happy holidays!

Table of Contents

Supported Countries, States, Regions

If you are missing holidays from your country, state, region please consider contributing.

Countries: 146
โ”œโ”€โ”€ AD: Andorra
โ”‚   โ””โ”€โ”€ 07: Andorra la Vella
โ”œโ”€โ”€ AE: ุฏูˆู„ุฉ ุงู„ุฅู…ุงุฑุงุช ุงู„ุนุฑุจูŠุฉ ุงู„ู…ุชุญุฏุฉ
โ”œโ”€โ”€ AG: Antigua & Barbuda
โ”‚   โ””โ”€โ”€ 10: Barbuda
โ”œโ”€โ”€ AI: Anguilla
โ”œโ”€โ”€ AL: Shqipรซri
โ”œโ”€โ”€ AM: ี€ีกีตีกีฝีฟีกีถ
โ”œโ”€โ”€ AO: Angola
โ”œโ”€โ”€ AR: Argentina
โ”œโ”€โ”€ AS: American Samoa
โ”œโ”€โ”€ AT: ร–sterreich
โ”‚   โ”œโ”€โ”€ 1: Burgenland
โ”‚   โ”œโ”€โ”€ 2: Kรคrnten
โ”‚   โ”œโ”€โ”€ 3: Niederรถsterreich
โ”‚   โ”œโ”€โ”€ 4: Oberรถsterreich
โ”‚   โ”œโ”€โ”€ 5: Land Salzburg
โ”‚   โ”œโ”€โ”€ 6: Steiermark
โ”‚   โ”œโ”€โ”€ 7: Tirol
โ”‚   โ”œโ”€โ”€ 8: Vorarlberg
โ”‚   โ””โ”€โ”€ 9: Wien
โ”œโ”€โ”€ AU: Australia
โ”‚   โ”œโ”€โ”€ ACT: Australian Capital Territory
โ”‚   โ”œโ”€โ”€ NSW: New South Wales
โ”‚   โ”œโ”€โ”€ NT: Northern Territory
โ”‚   โ”œโ”€โ”€ QLD: Queensland
โ”‚   โ”œโ”€โ”€ SA: South Australia
โ”‚   โ”œโ”€โ”€ TAS: Tasmania
โ”‚   โ”œโ”€โ”€ VIC: Victoria
โ”‚   โ””โ”€โ”€ WA: Western Australia
โ”œโ”€โ”€ AW: Aruba
โ”œโ”€โ”€ AX: Landskapet ร…land
โ”œโ”€โ”€ AZ: Azษ™rbaycan Respublikasฤฑ
โ”œโ”€โ”€ BA: Bosna i Hercegovina
โ”‚   โ”œโ”€โ”€ BIH: Federation of Bosnia and Herzegovina
โ”‚   โ”‚   โ””โ”€โ”€ W: Western Herzegovina
โ”‚   โ”œโ”€โ”€ BRC: Brฤko District
โ”‚   โ””โ”€โ”€ SRP: Republika Srpska
โ”œโ”€โ”€ BB: Barbados
โ”œโ”€โ”€ BD: เฆ—เฆฃเฆชเงเฆฐเฆœเฆพเฆคเฆจเงเฆคเงเฆฐเง€ เฆฌเฆพเฆ‚เฆฒเฆพเฆฆเง‡เฆถ
โ”œโ”€โ”€ BE: Belgique
โ”‚   โ”œโ”€โ”€ BRU: Bruxelles
โ”‚   โ”œโ”€โ”€ DE: Deutschsprachige Gemeinschaft
โ”‚   โ”œโ”€โ”€ VLG: Vlaamse Gemeenschap
โ”‚   โ””โ”€โ”€ WAL: Communautรฉ franรงaise
โ”œโ”€โ”€ BF: Burkina Faso
โ”œโ”€โ”€ BG: ะ‘ัŠะปะณะฐั€ะธั
โ”œโ”€โ”€ BH: ู…ู…ู„ูƒุฉ ุงู„ุจุญุฑูŠู†
โ”œโ”€โ”€ BI: Rรฉpublique du Burundi
โ”œโ”€โ”€ BJ: Rรฉpublique du Bรฉnin
โ”œโ”€โ”€ BL: St. Barthรฉlemy
โ”œโ”€โ”€ BM: Bermuda
โ”œโ”€โ”€ BN: Negara Brunei Darussalam
โ”œโ”€โ”€ BO: Bolivia
โ”œโ”€โ”€ BQ: Caribisch Nederland
โ”‚   โ”œโ”€โ”€ BO: Bonaire
โ”‚   โ”œโ”€โ”€ SA: Saba
โ”‚   โ””โ”€โ”€ SE: Sint Eustatius
โ”œโ”€โ”€ BR: Brasil
โ”‚   โ”œโ”€โ”€ AC: Acre
โ”‚   โ”œโ”€โ”€ AL: Alagoas
โ”‚   โ”œโ”€โ”€ AM: Amazonas
โ”‚   โ”œโ”€โ”€ AP: Amapรก
โ”‚   โ”œโ”€โ”€ BA: Bahia
โ”‚   โ”œโ”€โ”€ CE: Cearรก
โ”‚   โ”œโ”€โ”€ DF: Distrito Federal
โ”‚   โ”œโ”€โ”€ MA: Maranhรฃo
โ”‚   โ”œโ”€โ”€ MG: Minas Gerais
โ”‚   โ”‚   โ””โ”€โ”€ BH: Belo Horizonte
โ”‚   โ”œโ”€โ”€ MS: Mato Grosso do Sul
โ”‚   โ”œโ”€โ”€ MT: Mato Grosso
โ”‚   โ”œโ”€โ”€ PA: Parรก
โ”‚   โ”œโ”€โ”€ PB: Paraรญba
โ”‚   โ”œโ”€โ”€ PE: Pernambuco
โ”‚   โ”‚   โ””โ”€โ”€ RE: Recife
โ”‚   โ”œโ”€โ”€ PI: Piauรญ
โ”‚   โ”œโ”€โ”€ PR: Paranรก
โ”‚   โ”‚   โ””โ”€โ”€ CU: Curitiba
โ”‚   โ”œโ”€โ”€ RJ: Rio de Janeiro
โ”‚   โ”œโ”€โ”€ RN: Rio Grande do Norte
โ”‚   โ”œโ”€โ”€ RO: Rondรดnia
โ”‚   โ”œโ”€โ”€ RR: Roraima
โ”‚   โ”œโ”€โ”€ RS: Rio Grande do Sul
โ”‚   โ”œโ”€โ”€ SC: Santa Catarina
โ”‚   โ”œโ”€โ”€ SE: Sergipe
โ”‚   โ”œโ”€โ”€ SP: Sรฃo Paulo
โ”‚   โ”‚   โ””โ”€โ”€ SP: Sรฃo Paulo
โ”‚   โ””โ”€โ”€ TO: Tocantins
โ”œโ”€โ”€ BS: Bahamas
โ”œโ”€โ”€ BW: Botswana
โ”œโ”€โ”€ BY: ะ ััะฟัƒะฑะปั–ะบะฐ ะ‘ะตะปะฐั€ัƒััŒ
โ”œโ”€โ”€ BZ: Belize
โ”œโ”€โ”€ CA: Canada
โ”‚   โ”œโ”€โ”€ AB: Alberta
โ”‚   โ”œโ”€โ”€ BC: British Columbia
โ”‚   โ”œโ”€โ”€ MB: Manitoba
โ”‚   โ”œโ”€โ”€ NB: New Brunswick
โ”‚   โ”œโ”€โ”€ NL: Newfoundland and Labrador
โ”‚   โ”œโ”€โ”€ NS: Nova Scotia
โ”‚   โ”œโ”€โ”€ NT: Northwest Territories
โ”‚   โ”œโ”€โ”€ NU: Nunavut
โ”‚   โ”œโ”€โ”€ ON: Ontario
โ”‚   โ”œโ”€โ”€ PE: Prince Edward Island
โ”‚   โ”œโ”€โ”€ QC: Quebec
โ”‚   โ”œโ”€โ”€ SK: Saskatchewan
โ”‚   โ””โ”€โ”€ YT: Yukon
โ”œโ”€โ”€ CC: Cocos (Keeling) Islands
โ”œโ”€โ”€ CD: Rรฉpublique dรฉmocratique du Congo
โ”œโ”€โ”€ CF: Rรฉpublique centrafricaine
โ”œโ”€โ”€ CG: Rรฉpublique du Congo
โ”œโ”€โ”€ CH: Schweiz
โ”‚   โ”œโ”€โ”€ ZH: Kanton Zรผrich
โ”‚   โ”œโ”€โ”€ BE: Kanton Bern
โ”‚   โ”œโ”€โ”€ LU: Kanton Luzern
โ”‚   โ”œโ”€โ”€ UR: Kanton Uri
โ”‚   โ”œโ”€โ”€ SZ: Kanton Schwyz
โ”‚   โ”œโ”€โ”€ OW: Kanton Obwalden
โ”‚   โ”œโ”€โ”€ NW: Kanton Nidwalden
โ”‚   โ”œโ”€โ”€ GL: Kanton Glarus
โ”‚   โ”œโ”€โ”€ ZG: Kanton Zug
โ”‚   โ”œโ”€โ”€ FR: Canton de Fribourg
โ”‚   โ”œโ”€โ”€ SO: Kanton Solothurn
โ”‚   โ”œโ”€โ”€ BS: Kanton Basel-Stadt
โ”‚   โ”œโ”€โ”€ BL: Kanton Basel-Landschaft
โ”‚   โ”œโ”€โ”€ SH: Kanton Schaffhausen
โ”‚   โ”œโ”€โ”€ AR: Kanton Appenzell Ausserrhoden
โ”‚   โ”œโ”€โ”€ AI: Kanton Appenzell Innerrhoden
โ”‚   โ”œโ”€โ”€ SG: Kanton St. Gallen
โ”‚   โ”œโ”€โ”€ GR: Kanton Graubรผnden
โ”‚   โ”œโ”€โ”€ AG: Kanton Aargau
โ”‚   โ”œโ”€โ”€ TG: Kanton Thurgau
โ”‚   โ”œโ”€โ”€ TI: Canton Ticino
โ”‚   โ”œโ”€โ”€ VD: Canton de Vaud
โ”‚   โ”œโ”€โ”€ VS: Canton du Valais
โ”‚   โ”œโ”€โ”€ NE: Canton de Neuchรขtel
โ”‚   โ”œโ”€โ”€ GE: Canton de Genรจve
โ”‚   โ””โ”€โ”€ JU: Canton du Jura
โ”œโ”€โ”€ CL: Chile
โ”‚   โ”œโ”€โ”€ AP: Arica y Parinacota
โ”‚   โ”œโ”€โ”€ BI: Biobรญo
โ”‚   โ”‚   โ””โ”€โ”€ CH: Chillรกn y Chillรกn Viejo
โ”‚   โ””โ”€โ”€ TA: Tarapacรก
โ”œโ”€โ”€ CM: Cameroun
โ”œโ”€โ”€ CN: ไธญๅŽไบบๆฐ‘ๅ…ฑๅ’Œๅ›ฝ
โ”œโ”€โ”€ CO: Colombia
โ”œโ”€โ”€ CR: Costa Rica
โ”œโ”€โ”€ CU: Cuba
โ”œโ”€โ”€ CV: Repรบblica de Cabo Verde
โ”‚   โ””โ”€โ”€ S: Sotavento Islands
โ”‚       โ””โ”€โ”€ PR: Praia
โ”œโ”€โ”€ CW: Curaรงao
โ”œโ”€โ”€ CX: Christmas Island
โ”œโ”€โ”€ CY: ฮšฯฯ€ฯฮฟฯ‚
โ”œโ”€โ”€ CZ: ฤŒeskรก republika
โ”œโ”€โ”€ DE: Deutschland
โ”‚   โ”œโ”€โ”€ BB: Brandenburg
โ”‚   โ”œโ”€โ”€ BE: Berlin
โ”‚   โ”œโ”€โ”€ BW: Baden-Wรผrttemberg
โ”‚   โ”œโ”€โ”€ BY: Bayern
โ”‚   โ”‚   โ”œโ”€โ”€ A: Stadt Augsburg
โ”‚   โ”‚   โ””โ”€โ”€ EVANG: รœberwiegend evangelische Gemeinden
โ”‚   โ”œโ”€โ”€ HB: Hansestadt Bremen
โ”‚   โ”œโ”€โ”€ HE: Hessen
โ”‚   โ”œโ”€โ”€ HH: Hansestadt Hamburg
โ”‚   โ”œโ”€โ”€ MV: Mecklenburg Vorpommern
โ”‚   โ”œโ”€โ”€ NI: Niedersachsen
โ”‚   โ”œโ”€โ”€ NW: Nordrhein-Westfalen
โ”‚   โ”œโ”€โ”€ RP: Rheinland-Pfalz
โ”‚   โ”œโ”€โ”€ SH: Schleswig-Holstein
โ”‚   โ”œโ”€โ”€ SL: Saarland
โ”‚   โ”œโ”€โ”€ SN: Sachsen
โ”‚   โ”‚   โ””โ”€โ”€ BZ: Landkreis Bautzen
โ”‚   โ”œโ”€โ”€ ST: Sachsen-Anhalt
โ”‚   โ””โ”€โ”€ TH: Thรผringen
โ”‚       โ”œโ”€โ”€ EIC: Landkreis Eichfeld
โ”‚       โ”œโ”€โ”€ UH: Unstrut-Hainich-Kreis
โ”‚       โ””โ”€โ”€ WAK: Wartburgkreis
โ”œโ”€โ”€ DK: Danmark
โ”œโ”€โ”€ DM: Dominica
โ”œโ”€โ”€ DO: Repรบblica Dominicana
โ”œโ”€โ”€ EC: Ecuador
โ”‚   โ””โ”€โ”€ P: Pichincha
โ”‚       โ””โ”€โ”€ QU: Quito
โ”œโ”€โ”€ EE: Eesti
โ”œโ”€โ”€ ES: Espaรฑa
โ”‚   โ”œโ”€โ”€ MD: Comunidad de Madrid
โ”‚   โ”œโ”€โ”€ AN: Andalucรญa
โ”‚   โ”œโ”€โ”€ AR: Aragรณn
โ”‚   โ””โ”€โ”€ CT: Catalonia
โ”œโ”€โ”€ ET: แŠขแ‰ตแ‹ฎแŒตแ‹ซ
โ”œโ”€โ”€ FI: Suomi
โ”œโ”€โ”€ FO: Fรธroyar
โ”œโ”€โ”€ FR: France
โ”‚   โ”œโ”€โ”€ 57: Dรฉpartement Moselle
โ”‚   โ”œโ”€โ”€ 67: Dรฉpartement Bas-Rhin
โ”‚   โ”œโ”€โ”€ 68: Dรฉpartement Haut-Rhin
โ”‚   โ”œโ”€โ”€ YT: Dรฉpartement et rรฉgion d'outre-mer Mayotte
โ”‚   โ”œโ”€โ”€ MQ: Dรฉpartement et rรฉgion d'outre-mer Martinique
โ”‚   โ”œโ”€โ”€ GP: Dรฉpartement et rรฉgion d'outre-mer Guadeloupe
โ”‚   โ”œโ”€โ”€ GF: Dรฉpartement et rรฉgion d'outre-mer Guyane
โ”‚   โ””โ”€โ”€ RE: Dรฉpartement et rรฉgion d'outre-mer La Rรฉunion
โ”œโ”€โ”€ GA: Gabon
โ”œโ”€โ”€ GB: United Kingdom
โ”‚   โ”œโ”€โ”€ ALD: Alderney
โ”‚   โ”œโ”€โ”€ ENG: England
โ”‚   โ”œโ”€โ”€ NIR: Northern Ireland
โ”‚   โ”œโ”€โ”€ SCT: Scotland
โ”‚   โ””โ”€โ”€ WLS: Wales
โ”œโ”€โ”€ GD: Grenada
โ”œโ”€โ”€ GE: แƒกแƒแƒฅแƒแƒ แƒ—แƒ•แƒ”แƒšแƒ
โ”œโ”€โ”€ GF: Guyane
โ”œโ”€โ”€ GG: Guernsey
โ”œโ”€โ”€ GI: Gibraltar
โ”œโ”€โ”€ GL: Kalaallit Nunaat
โ”œโ”€โ”€ GP: Guadeloupe
โ”œโ”€โ”€ GQ: Repรบblica de Guinea Ecuatorial
โ”œโ”€โ”€ GR: ฮ•ฮปฮปฮฌฮดฮฑ
โ”œโ”€โ”€ GT: Guatemala
โ”œโ”€โ”€ GU: Guam
โ”œโ”€โ”€ GY: Guyana
โ”œโ”€โ”€ HN: Honduras
โ”œโ”€โ”€ HR: Hrvatska
โ”‚   โ”œโ”€โ”€ 17: Split-Dalmatia
โ”‚   โ””โ”€โ”€ 19: Dubrovnik-Neretva
โ”œโ”€โ”€ HT: Haรฏti
โ”œโ”€โ”€ HU: Magyarorszรกg
โ”œโ”€โ”€ ID: Indonesia
โ”œโ”€โ”€ IE: Ireland
โ”œโ”€โ”€ IM: Isle of Man
โ”œโ”€โ”€ IS: รsland
โ”œโ”€โ”€ IT: Italia
โ”‚   โ””โ”€โ”€ 32: Sรผdtirol, Alto Adige
โ”œโ”€โ”€ JE: Jersey
โ”œโ”€โ”€ JM: Jamaica
โ”œโ”€โ”€ JP: ๆ—ฅๆœฌ
โ”œโ”€โ”€ KE: Kenya
โ”œโ”€โ”€ KR: ๋Œ€ํ•œ๋ฏผ๊ตญ
โ”œโ”€โ”€ LI: Lichtenstein
โ”œโ”€โ”€ LS: \'Muso oa Lesotho
โ”œโ”€โ”€ LT: Lietuva
โ”œโ”€โ”€ LU: Luxembourg
โ”œโ”€โ”€ LV: Latvija
โ”œโ”€โ”€ MC: Monaco
โ”œโ”€โ”€ MD: Republica Moldova
โ”‚   โ”œโ”€โ”€ CA: Cahul
โ”‚   โ””โ”€โ”€ CU: Chiศ™inฤƒu
โ”œโ”€โ”€ ME: Crna Gora
โ”œโ”€โ”€ MG: Repoblikan'i Madagasikara
โ”œโ”€โ”€ MK: ะ ะตะฟัƒะฑะปะธะบะฐ ะœะฐะบะตะดะพะฝะธั˜ะฐ
โ”œโ”€โ”€ MQ: Martinique
โ”œโ”€โ”€ MT: Malta
โ”œโ”€โ”€ MW: Malawi
โ”œโ”€โ”€ MX: Mรฉxico
โ”œโ”€โ”€ MZ: Moรงambique
โ”œโ”€โ”€ NA: Namibia
โ”œโ”€โ”€ NI: Nicaragua
โ”œโ”€โ”€ NL: Nederland
โ”œโ”€โ”€ NO: Norge
โ”œโ”€โ”€ NZ: New Zealand
โ”‚   โ”œโ”€โ”€ AUK: Auckland Province
โ”‚   โ”œโ”€โ”€ CAN: Canterbury
โ”‚   โ”‚   โ””โ”€โ”€ S: South Canterbury
โ”‚   โ”œโ”€โ”€ CIT: Chatham Islands
โ”‚   โ”œโ”€โ”€ HKB: Hawke's Bay
โ”‚   โ”œโ”€โ”€ MBH: Marlborough
โ”‚   โ”œโ”€โ”€ NSN: Nelson
โ”‚   โ”œโ”€โ”€ NTL: Northland
โ”‚   โ”œโ”€โ”€ OTA: Otago Province
โ”‚   โ”œโ”€โ”€ STL: Southland
โ”‚   โ”œโ”€โ”€ TKI: Taranaki
โ”‚   โ”œโ”€โ”€ WGN: Wellington Province
โ”‚   โ””โ”€โ”€ WTC: Westland
โ”œโ”€โ”€ PA: Panamรก
โ”œโ”€โ”€ PE: Perรบ
โ”‚   โ””โ”€โ”€ CUS: Cuzco
โ”œโ”€โ”€ PH: Philippines
โ”œโ”€โ”€ PL: Polska
โ”œโ”€โ”€ PT: Portugal
โ”œโ”€โ”€ PY: Paraguay
โ”œโ”€โ”€ RE: Rรฉunion
โ”œโ”€โ”€ RO: Romania
โ”œโ”€โ”€ RS: ะ ะตะฟัƒะฑะปะธะบะฐ ะกั€ะฑะธั˜ะฐ
โ”œโ”€โ”€ RU: ะ ะพััะธั
โ”œโ”€โ”€ RW: Repubulika y'u Rwanda
โ”œโ”€โ”€ SE: Sverige
โ”œโ”€โ”€ SG: Singapore
โ”œโ”€โ”€ SH: St. Helena
โ”‚   โ”œโ”€โ”€ AC: Ascension Island
โ”‚   โ”œโ”€โ”€ HL: Saint Helena
โ”‚   โ””โ”€โ”€ TA: Tristan da Cunha
โ”œโ”€โ”€ SI: Republika Slovenija
โ”œโ”€โ”€ SJ: Svalbard & Jan Mayen
โ”œโ”€โ”€ SK: Slovenskรก republika
โ”œโ”€โ”€ SM: San Marino
โ”œโ”€โ”€ SO: Jamhuuriyadda Federaalka Soomaaliya
โ”‚   โ”œโ”€โ”€ AW: Awdal
โ”‚   โ”œโ”€โ”€ SA: Sanaag
โ”‚   โ”œโ”€โ”€ SO: Sool
โ”‚   โ”œโ”€โ”€ TO: Togdheer
โ”‚   โ””โ”€โ”€ WO: Woqooyi Galbeed
โ”œโ”€โ”€ SS: South Sudan
โ”œโ”€โ”€ SV: El Salvador
โ”‚   โ””โ”€โ”€ SS: San Salvador
โ”œโ”€โ”€ TG: Rรฉpublique togolaise
โ”œโ”€โ”€ TO: Puleสปanga Fakatuสปi สปo Tonga
โ”œโ”€โ”€ TR: Tรผrkiye
โ”œโ”€โ”€ TZ: Tanzania
โ”œโ”€โ”€ UA: ะฃะบั€ะฐั—ะฝะฐ
โ”œโ”€โ”€ UG: Uganda
โ”œโ”€โ”€ US: United States of America
โ”‚   โ”œโ”€โ”€ AL: Alabama
โ”‚   โ”œโ”€โ”€ AK: Alaska
โ”‚   โ”œโ”€โ”€ AZ: Arizona
โ”‚   โ”œโ”€โ”€ AR: Arkansas
โ”‚   โ”œโ”€โ”€ CA: California
โ”‚   โ”‚   โ””โ”€โ”€ LA: Los Angeles
โ”‚   โ”œโ”€โ”€ CO: Colorado
โ”‚   โ”œโ”€โ”€ CT: Connecticut
โ”‚   โ”œโ”€โ”€ DE: Delaware
โ”‚   โ”œโ”€โ”€ DC: District of Columbia
โ”‚   โ”œโ”€โ”€ FL: Florida
โ”‚   โ”œโ”€โ”€ GA: Georgia
โ”‚   โ”œโ”€โ”€ HI: Hawaii
โ”‚   โ”œโ”€โ”€ ID: Idaho
โ”‚   โ”œโ”€โ”€ IL: Illinois
โ”‚   โ”œโ”€โ”€ IN: Indiana
โ”‚   โ”œโ”€โ”€ IA: Iowa
โ”‚   โ”œโ”€โ”€ KS: Kansas
โ”‚   โ”œโ”€โ”€ KY: Kentucky
โ”‚   โ”œโ”€โ”€ LA: Louisiana
โ”‚   โ”‚   โ””โ”€โ”€ NO: New Orleans
โ”‚   โ”œโ”€โ”€ ME: Maine
โ”‚   โ”œโ”€โ”€ MD: Maryland
โ”‚   โ”œโ”€โ”€ MA: Massachusetts
โ”‚   โ”œโ”€โ”€ MI: Michigan
โ”‚   โ”œโ”€โ”€ MN: Minnesota
โ”‚   โ”œโ”€โ”€ MS: Mississippi
โ”‚   โ”œโ”€โ”€ MO: Missouri
โ”‚   โ”œโ”€โ”€ MT: Montana
โ”‚   โ”œโ”€โ”€ NE: Nebraska
โ”‚   โ”œโ”€โ”€ NV: Nevada
โ”‚   โ”œโ”€โ”€ NH: New Hampshire
โ”‚   โ”œโ”€โ”€ NJ: New Jersey
โ”‚   โ”œโ”€โ”€ NM: New Mexico
โ”‚   โ”œโ”€โ”€ NY: New York
โ”‚   โ”œโ”€โ”€ NC: North Carolina
โ”‚   โ”œโ”€โ”€ ND: North Dakota
โ”‚   โ”œโ”€โ”€ OH: Ohio
โ”‚   โ”œโ”€โ”€ OK: Oklahoma
โ”‚   โ”œโ”€โ”€ OR: Oregon
โ”‚   โ”œโ”€โ”€ PA: Pennsylvania
โ”‚   โ”œโ”€โ”€ RI: Rhode Island
โ”‚   โ”œโ”€โ”€ SC: South Carolina
โ”‚   โ”œโ”€โ”€ SD: South Dakota
โ”‚   โ”œโ”€โ”€ TN: Tennessee
โ”‚   โ”œโ”€โ”€ TX: Texas
โ”‚   โ”œโ”€โ”€ UT: Utah
โ”‚   โ”œโ”€โ”€ VT: Vermont
โ”‚   โ”œโ”€โ”€ VA: Virginia
โ”‚   โ”œโ”€โ”€ WA: Washington
โ”‚   โ”œโ”€โ”€ WV: West Virginia
โ”‚   โ”œโ”€โ”€ WI: Wisconsin
โ”‚   โ””โ”€โ”€ WY: Wyoming
โ”œโ”€โ”€ UY: Uruguay
โ”œโ”€โ”€ VA: Stato della Cittร  del Vaticano
โ”œโ”€โ”€ VE: Venezuela
โ”‚   โ”œโ”€โ”€ B: Anzoรกtegui
โ”‚   โ”œโ”€โ”€ G: Carabobo
โ”‚   โ”œโ”€โ”€ K: Lara
โ”‚   โ”‚   โ””โ”€โ”€ BA: Barquisimeto
โ”‚   โ”œโ”€โ”€ M: Miranda
โ”‚   โ”œโ”€โ”€ N: Monagas
โ”‚   โ”œโ”€โ”€ S: Tรกchira
โ”‚   โ””โ”€โ”€ V: Zulia
โ”œโ”€โ”€ VN: Cแป™ng hรฒa Xรฃ hแป™i chแปง nghฤฉa Viแป‡t Nam
โ”œโ”€โ”€ XK: Republika e Kosovรซs
โ”œโ”€โ”€ YT: Mayotte
โ”œโ”€โ”€ ZA: South Africa
โ”œโ”€โ”€ ZM: Zambia
โ””โ”€โ”€ ZW: Zimbabwe

Usage

var Holidays = require('date-holidays')
var hd = new Holidays()

// get supported countries
hd.getCountries()
/*>
{ AD: 'Andorra',
  ...
  US: 'United States' }
*/

// get supported states e.g. for US
hd.getStates('US')
/*>
{ al: 'Alabama',
  ...
  wy: 'Wyoming' }
*/

// get supported regions e.g. for US, Lousiana
hd.getRegions('US', 'la')
/*>
{ no: 'New Orleans' }
*/

// initialize holidays for US, Lousiana, New Orleans
hd.init('US', 'la', 'no')
// or using a new instance
hd = new Holidays('US', 'la', 'no')

// get all holidays for the year 2016
hd.getHolidays(2016)
/*>
[ { date: '2016-01-01 00:00:00',
    start: Fri Jan 01 2016 00:00:00 GMT-0600 (CST),
    end: Sat Jan 02 2016 00:00:00 GMT-0600 (CST),
    name: 'New Year\'s Day',
    rule: '01-01 and if sunday then next monday if saturday then previous friday',
    type: 'public' },
  ...
  { date: '2016-11-24 00:00:00',
    start: Thu Nov 24 2016 00:00:00 GMT-0600 (CST),
    end: Fri Nov 25 2016 00:00:00 GMT-0600 (CST),
    name: 'Thanksgiving Day',
    rule: '4th thursday in November',
    type: 'public' },
  ...
  { date: '2016-12-26 00:00:00',
    start: Mon Dec 26 2016 00:00:00 GMT-0600 (CST),
    end: Tue Dec 27 2016 00:00:00 GMT-0600 (CST),
    substitute: true,
    name: 'Christmas Day (substitute day)',
    rule: '12-25 and if sunday then next monday if saturday then previous friday',
    type: 'public' } ]
*/

// check if date is a holiday while respecting timezones
hd.isHoliday(new Date('2016-02-09 00:00:00 GMT+0000'))
//> false
hd.isHoliday(new Date('2016-02-09 10:00:00 GMT-0600'))
/*>
[{ date: '2016-02-09 00:00:00',
  start: Tue Feb 09 2016 00:00:00 GMT-0600 (CST),
  end: Wed Feb 10 2016 00:00:00 GMT-0600 (CST),
  name: 'Mardi Gras',
  rule: 'easter -47',
  type: 'public' }
]
*/

Holiday object

getHolidays() as well as a matching isHoliday() call return either a list or a single holiday object which consists of:

  • {String} date - ISO Date String of (start)-date in local format
  • {Date} start - start date of holiday
  • {Date} end - end date of holiday
  • {String} name - name of holiday using language (if available)
  • {String} type - type of holiday public|bank|school|optional|observance
  • {Boolean} substitute - (optional) if true holiday substitutes another holiday`
  • {String} note - (optional) note`

Dates

The date String represents the start date of the holiday in ISO format without timezone. This string it intended for information only.

start and end are the start/end date of the holiday within the selected timezone of the country, state, region.

Name

The name names the holiday in the local language of the selected country, state, region. The applied language(s) can be requested using getLanguages().

The language can be changed using the setLanguages() method. In case that not translation is available a fall-back to the next given language will be made. E.g. local language is "fr", setLanguages('nl') was called. For all holidays where no dutch translation is available the French version will be used instead.

All holiday names should support an English translation.

Types of holidays

Currently the following type with their meaning are supported

type meaning
public public holiday
bank bank holiday, banks and offices are closed
school school holiday, schools are closed
optional majority of people take a day off
observance optional festivity, no paid day off

Additionally a note field is sometimes available for further clarification.

API

See Holidays API for further information.

Data

All data for the holidays of the different countries is contained in ./data/holidays.json. For changing holiday data edit the appropriate country in ./data/countries. Any details on structure and available grammar for holiday attribution is described in holidays.yaml specification.

Custom builds of holidays.json

If only selected countries are required in data/holidays.json you can add the following script to your npm scripts section. E.g. for picking just US, Canada, Mexico do the following:

"scripts": {
  "build": "holidays2json --pick US,CA,MX --min"
},

The --min switch removes dependencies which are not required for the countries selected. You may not be able to use the full set of rules in case you want to add custom rules.

Alternatively you may use the --omit option.

Manually use

npx holidays2json --pick US,CA,MX

NOTE: There are some countries which depend on data of others which might render the file useless. e.g. "GU" requires "US", so try to pick or omit both.

Bundling with webpack

To minimize bundle sizes consider adding the following lines in your webpack config. Please take a look at ./webpack.config.js. To further reduce size consider custom builds by only selecting required countries.

...
  plugins: [
    // ---- do not bundle moment locales
    new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
    // ---- do not bundle astronomia vsop planet data
    new webpack.IgnorePlugin(/^\.\/vsop87B.*$/)
    ...

Browser

This project also runs in all modern browsers. See ./examples/browser

Browser Version Notes
Chrome >=45
Firefox >=45
Safari >=10
Edge >=13
IE >=11 needs polyfill core-js/es6

Please do not forget to set the correct charset!

<html>
<head>
  <!-- set page-wide -->
  <meta charset="UTF-8">
  ...
</head>
<body>
  ...
  <!-- or per script -->
  <script src="your-bundle.js" charset="UTF-8"></script>

CDN

Minified distribution bundles are available via https://unpkg.com

NOTE: dist-bundles are quite huge in size ~1.5MByte so use custom builds instead.

See https://unpkg.com/date-holidays/dist/

  • index.min.js: commonjs2 bundle
  • umd.min.js: umd bundle

Contribution and License Agreement

You like to contribute please read CONTRIBUTING.md.

If you contribute code to this project, you are implicitly allowing your code to be distributed under the ISC license. You are also implicitly verifying that all code is your original work or correctly attributed with the source of its origin and license.

License

Copyright (c) 2016- commenthol (ISC License)

The data contained in holidays.json and ./data/countries/*.yaml is available under CC BY-SA 3.0 as the majority of data obtained relies on wikipedia articles. The required attribution can be found inside the files ./data/countries/*.yaml.

See LICENSE for more information.

References

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].