Nager.Date 1.27.0

Calculate Public Holidays / Federal Holidays for a given year, translation native and english. Country and County support. Supports more than 100 countries

Install-Package Nager.Date -Version 1.27.0
dotnet add package Nager.Date --version 1.27.0
<PackageReference Include="Nager.Date" Version="1.27.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nager.Date --version 1.27.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

- Removed `DateSystem.GetDate` method, because this method does not fit thematically anymore.
 - Converted NoHolidaysProvider to singleton
   NoHolidaysProvider converted to a singleton to minimize the number of object references held.
 - Refactored DateSystem.GetWeekendProvider
   To use the return value of .TryGetValue instead of an additional null check
 - Converted _publicHolidaysProviders to Lazy Values
   This ensures that all content is available. However, only instantiated by the initial call, so that only the providers that are needed are loaded.
 - Fixed UnitTest based on latest changes on NoHolidayProvider
 - Use Keys collection instead of iterating the KeyValuePairs.
 - Simplified usage of FindDay
   Instead of splitting the date components to use them.
 - Instantiates only once per WeekendProvider instead of on every call.
 - Creates the respective IWeekendProviders only as needed.

  • .NETFramework 4.5

    • No dependencies.
  • .NETFramework 4.6.1

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Nager.Date:

Package Downloads
DateTimeConversionExtensions
A library of extension mehods to help convert times between time zones, add business days to a date time etc. Hat tip no Nager Date for calculating holidays and weekends for adding business days. Date time conversions use .Net's System.TimeZoneInfo.
Lava
Lava is a small Blazor components library

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.27.0 341 1/13/2021
1.26.7 2,396 12/18/2020
1.26.6 7,499 11/23/2020
1.26.5 1,114 11/20/2020
1.26.4 23,800 10/22/2020
1.26.3 28,192 8/26/2020
1.26.2 21,260 7/1/2020
1.26.1 3,381 6/16/2020
1.26.0 8,036 5/29/2020
1.25.11 36,984 4/29/2020
1.25.10 199,580 1/14/2020
1.25.9 6,603 1/6/2020
1.25.8 35,339 11/24/2019
1.25.7 16,014 10/30/2019
1.25.6 84,465 9/2/2019
1.25.5 6,338 8/22/2019
1.25.4 16,018 8/9/2019
1.25.3 77,208 6/25/2019
1.25.2 6,500 6/12/2019
1.25.1 4,237 6/10/2019
1.25.0 283 6/10/2019
1.24.9 45,345 4/22/2019
1.24.8 13,336 4/2/2019
1.24.7 13,603 3/5/2019
1.24.6 8,807 2/27/2019
1.24.5 5,430 2/19/2019
1.24.3 15,812 1/24/2019
1.24.2 244 1/24/2019
1.24.1 1,968 1/22/2019
1.24.0 55,498 1/12/2019
1.23.1 7,823 1/11/2019
1.23.0 4,655 1/5/2019
1.22.4 30,733 12/14/2018
1.22.3 54,163 10/18/2018
1.22.1 10,983 9/14/2018
1.22.0 1,781 9/8/2018
1.21.0 50,135 8/15/2018
1.20.4 14,585 8/1/2018
1.20.3 13,000 6/22/2018
1.20.2 2,420 6/7/2018
1.20.1 9,443 5/7/2018
1.20.0 1,647 4/23/2018
1.19.4 8,012 4/4/2018
1.19.3 3,789 3/7/2018
1.19.2 4,345 2/25/2018
1.19.1 22,843 1/31/2018
1.19.0 882 1/22/2018
1.18.2 14,359 12/28/2017
1.18.1 10,099 12/21/2017
1.18.0 2,872 11/27/2017
1.17.0 489 11/26/2017
1.16.0 3,195 11/4/2017
1.15.0 20,562 10/9/2017
1.14.0 667 10/4/2017
1.13.0 2,122 9/30/2017
1.12.0 1,316 9/17/2017
1.11.0 824 9/11/2017
1.10.0 1,061 8/28/2017
1.9.1 6,774 7/5/2017
1.9.0 30,498 5/18/2017
1.8.0 412 5/18/2017
1.7.0 905 5/4/2017
1.6.1 467 5/3/2017
1.6.0 2,466 3/26/2017
1.5.1 663 3/19/2017
1.5.0 590 3/12/2017
1.4.1 478 3/12/2017
1.4.0 444 3/9/2017
1.3.0 543 3/4/2017
1.2.0 596 2/28/2017
1.1.0 487 2/25/2017
1.0.24 466 2/23/2017
1.0.23 520 2/7/2017
1.0.22 443 2/5/2017
1.0.21 449 2/5/2017
1.0.18 1,605 1/25/2017
1.0.15 476 1/12/2017
1.0.13 874 1/5/2017
1.0.7 1,415 5/14/2016
1.0.3 778 8/15/2014