Nager.Date 2.0.2
Nager.Date
Nager.Date is a popular project for querying holidays, we currently support for over 100 countries.
Country Support
The list of supported countries can be found here
Examples
Set License Key
HolidaySystem.LicenseKey = "TheLicenseKey";
Get all holidays of a country and year
var holidays = HolidaySystem.GetHolidays(2024, "DE");
foreach (var holiday in holidays)
{
Console.WriteLine($"{holiday.Date:yyyy-MM-dd} - {holiday.EnglishName}");
//holiday...
//holiday.Date -> The date
//holiday.LocalName -> The local name
//holiday.EnglishName -> The english name
//holiday.NationalHoliday -> Is this holiday in every county (federal state)
//holiday.SubdivisionCodes -> Is the holiday only valid for a special county ISO-3166-2 - Federal states
//holiday.HolidayTypes -> Public, Bank, School, Authorities, Optional, Observance
}
Get all holidays for a date range
var startDate = new DateTime(2016, 5, 1);
var endDate = new DateTime(2024, 5, 31);
var holidays = HolidaySystem.GetHolidays(startDate, endDate, CountryCode.DE);
foreach (var holiday in holidays)
{
//holiday...
}
Check if a date is a public holiday
var date = new DateTime(2024, 1, 1);
if (HolidaySystem.IsPublicHoliday(date, CountryCode.DE))
{
Console.WriteLine("Is a public holiday");
}
Checks if the given date falls on a weekend day
var date = new DateTime(2024, 1, 1);
if (WeekendSystem.IsWeekend(date, CountryCode.DE))
{
Console.WriteLine("The date is in the weekend");
}
No packages depend on Nager.Date.
A changelog is available at https://github.com/nager/Nager.Date/blob/master/CHANGELOG.md
.NET Framework 4.7.2
- Nager.LicenseSystem (>= 1.0.0)
.NET 6.0
- Nager.LicenseSystem (>= 1.0.0)
.NET 8.0
- Nager.LicenseSystem (>= 1.0.0)
.NET Standard 2.0
- Nager.LicenseSystem (>= 1.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 2.12.0 | 1 | 10/26/2025 |
| 2.11.1 | 2 | 10/15/2025 |
| 2.11.0 | 2 | 10/09/2025 |
| 2.10.3 | 2 | 10/02/2025 |
| 2.10.2 | 2 | 10/03/2025 |
| 2.10.1 | 3 | 09/21/2025 |
| 2.10.0 | 3 | 09/20/2025 |
| 2.9.2 | 3 | 09/18/2025 |
| 2.9.1 | 3 | 08/30/2025 |
| 2.9.0 | 6 | 06/14/2025 |
| 2.8.7 | 9 | 06/04/2025 |
| 2.8.6 | 9 | 05/31/2025 |
| 2.8.5 | 9 | 05/19/2025 |
| 2.8.4 | 10 | 05/11/2025 |
| 2.8.3 | 11 | 04/26/2025 |
| 2.8.2 | 12 | 04/02/2025 |
| 2.8.1 | 12 | 03/07/2025 |
| 2.8.0 | 12 | 03/09/2025 |
| 2.7.5 | 15 | 01/29/2025 |
| 2.7.4 | 11 | 01/18/2025 |
| 2.7.3 | 12 | 01/22/2025 |
| 2.7.2 | 13 | 01/15/2025 |
| 2.7.1 | 15 | 11/15/2024 |
| 2.7.0 | 13 | 11/15/2024 |
| 2.6.7 | 15 | 11/15/2024 |
| 2.6.6 | 16 | 11/15/2024 |
| 2.6.5 | 16 | 11/15/2024 |
| 2.6.4 | 13 | 11/15/2024 |
| 2.6.3 | 13 | 11/15/2024 |
| 2.6.2 | 16 | 10/05/2024 |
| 2.6.1 | 15 | 10/02/2024 |
| 2.6.0 | 17 | 10/02/2024 |
| 2.5.3 | 15 | 09/27/2024 |
| 2.5.2 | 17 | 09/27/2024 |
| 2.5.1 | 18 | 09/27/2024 |
| 2.5.0 | 21 | 08/20/2024 |
| 2.4.1 | 20 | 07/13/2024 |
| 2.4.0 | 19 | 05/18/2024 |
| 2.3.1 | 22 | 04/18/2024 |
| 2.3.0 | 24 | 04/18/2024 |
| 2.2.2 | 21 | 04/18/2024 |
| 2.2.1 | 19 | 04/18/2024 |
| 2.2.0 | 22 | 04/18/2024 |
| 2.1.0 | 26 | 03/15/2024 |
| 2.0.2 | 19 | 03/15/2024 |
| 2.0.1 | 21 | 03/15/2024 |
| 2.0.0 | 20 | 03/15/2024 |
| 1.48.0 | 21 | 02/13/2024 |
| 1.47.1 | 22 | 02/13/2024 |
| 1.47.0 | 21 | 02/13/2024 |
| 1.46.0 | 24 | 02/13/2024 |
| 1.45.0 | 21 | 02/13/2024 |
| 1.44.0 | 23 | 02/13/2024 |
| 1.43.0 | 20 | 02/13/2024 |
| 1.42.0 | 21 | 02/13/2024 |
| 1.41.0 | 24 | 02/13/2024 |
| 1.40.0 | 20 | 02/13/2024 |
| 1.39.0 | 23 | 02/13/2024 |
| 1.38.0 | 21 | 02/13/2024 |
| 1.37.0 | 29 | 02/13/2024 |
| 1.36.4 | 24 | 02/13/2024 |
| 1.36.3 | 24 | 02/13/2024 |
| 1.36.2 | 23 | 02/13/2024 |
| 1.36.1 | 22 | 02/13/2024 |
| 1.36.0 | 21 | 02/13/2024 |
| 1.35.0 | 63 | 08/09/2022 |
| 1.34.1 | 25 | 05/10/2022 |
| 1.33.1 | 29 | 04/06/2022 |
| 1.32.0 | 23 | 02/13/2024 |
| 1.30.0 | 26 | 02/13/2024 |
| 1.29.2 | 21 | 06/21/2021 |
| 1.29.1 | 27 | 06/16/2021 |
| 1.29.0 | 24 | 05/18/2021 |
| 1.28.2 | 22 | 03/08/2021 |
| 1.28.1 | 22 | 02/17/2021 |
| 1.28.0 | 26 | 02/02/2021 |
| 1.27.1 | 23 | 01/20/2021 |
| 1.27.0 | 24 | 01/13/2021 |
| 1.26.7 | 62 | 12/18/2020 |
| 1.26.6 | 27 | 11/23/2020 |
| 1.26.5 | 21 | 11/20/2020 |
| 1.26.4 | 76 | 10/25/2020 |
| 1.26.3 | 23 | 02/13/2024 |
| 1.26.2 | 22 | 02/13/2024 |
| 1.26.1 | 27 | 09/05/2020 |
| 1.26.0 | 25 | 02/13/2024 |
| 1.25.11 | 22 | 04/29/2020 |
| 1.25.10 | 21 | 02/13/2024 |
| 1.25.8 | 21 | 02/13/2024 |
| 1.25.7 | 24 | 02/13/2024 |
| 1.25.6 | 22 | 02/13/2024 |
| 1.25.4 | 22 | 02/13/2024 |
| 1.25.3 | 23 | 02/13/2024 |
| 1.24.9 | 22 | 02/13/2024 |
| 1.24.8 | 23 | 02/13/2024 |
| 1.24.7 | 21 | 02/13/2024 |
| 1.24.5 | 21 | 02/13/2024 |
| 1.24.0 | 22 | 02/13/2024 |
| 1.22.4 | 21 | 02/13/2024 |
| 1.22.3 | 24 | 02/13/2024 |
| 1.21.0 | 20 | 02/13/2024 |
| 1.20.3 | 24 | 02/13/2024 |
| 1.15.0 | 24 | 02/10/2020 |
| 1.9.0 | 21 | 02/13/2024 |
| 1.6.0 | 21 | 02/10/2020 |
| 1.0.23 | 23 | 02/10/2020 |
| 1.0.18 | 21 | 02/10/2020 |
| 1.0.16 | 23 | 02/10/2020 |
| 1.0.7 | 22 | 02/10/2020 |
| 1.0.3 | 24 | 02/13/2024 |