CzechHolidays 1.0.1
dotnet add package CzechHolidays --version 1.0.1
NuGet\Install-Package CzechHolidays -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CzechHolidays" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CzechHolidays" Version="1.0.1" />
<PackageReference Include="CzechHolidays" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CzechHolidays --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CzechHolidays, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CzechHolidays@1.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CzechHolidays&version=1.0.1
#tool nuget:?package=CzechHolidays&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Czech Holidays
Lightweight .NET library for generating Czech public holidays for any calendar year without external APIs or stored year tables.
![]()
The library distinguishes between:
- Fixed holidays – same date every year
- Movable holidays – derived from Easter (Good Friday, Easter Monday)
Movable holidays are calculated algorithmically from Easter Sunday using the Meeus/Jones/Butcher algorithm.
Fixed Holidays
| Date | Holiday |
|---|---|
| Jan 1 | Restoration Day of the Independent Czech State; New Year’s Day |
| May 1 | Labour Day |
| May 8 | Victory Day |
| Jul 5 | Saints Cyril and Methodius Day |
| Jul 6 | Jan Hus Day |
| Sep 28 | St. Wenceslas Day (Czech Statehood Day) |
| Oct 28 | Independent Czechoslovak State Day |
| Nov 17 | Struggle for Freedom and Democracy Day |
| Dec 24 | Christmas Eve |
| Dec 25 | Christmas Day |
| Dec 26 | St. Stephen’s Day |
Movable Holidays
| Date | Holiday |
|---|---|
| Differs each year | Good Friday |
| Differs each year | Easter Monday |
Scope
- Czech public holidays only
- Holiday names available in Czech, English, and German
Usage
Create Czech Holidays for a Year
ICzechHolidaysFactory holidaysFactory = new CzechHolidaysFactory();
IReadOnlyList<CzechHolidayDate> holidays2025 = holidaysFactory.Create(year: 2025);
Determine Whether a Date Is a Czech Public Holiday In a Specific Year
ICzechHolidaysFactory factory = new CzechHolidaysFactory();
IReadOnlyList<CzechHolidayDate> holidays2025 = factory.Create(2025);
bool isHoliday = holidays2025.Any(holiday => holiday.Date == new DateOnly(2025, 1, 1)); // true
Get Holiday Names
string newYearCzechName = CzechHolidayNames.GetName(CzechHoliday.NewYear, CzechHolidayLanguage.Czech);
string newYearEnglishName = CzechHolidayNames.GetName(CzechHoliday.NewYear, CzechHolidayLanguage.English);
string newYearGermanName = CzechHolidayNames.GetName(CzechHoliday.NewYear, CzechHolidayLanguage.German);
ICzechHolidaysFactory factory = new CzechHolidaysFactory();
IReadOnlyList<CzechHolidayDate> holidays2025 = factory.Create(2025);
CzechHolidayDate holiday = holidays2025.First();
string czechName = CzechHolidayNames.GetName(holiday.Holiday, CzechHolidayLanguage.Czech);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.