Date Calculator business days excl weekends and holidays
# 📅 Libera.Date.Api Calculator API **Libera.Date.Api** is a robust .NET API designed for precise date and time calculations. It leverages the power of **NodaTime** to handle complex period calculations and provides comprehensive working days analysis for multiple countries (PL, DE, US, UK, etc.). ## 🚀 Key Features * **Period Calculation**: Calculate the exact difference between dates in years,…
Date Calculator business days excl weekends and holidays endpoints
| Method | Endpoint | Description |
|---|---|---|
| Health | ||
| GET |
Health check /health |
Check health |
| Date Calculator | ||
| GET |
/date-calculator/period/time /date-calculator/period/time |
Calculates the precise time difference (days, hours, minutes) between two date-times. |
| GET |
/date-calculator/period/date /date-calculator/period/date |
Calculates the difference between two dates in years, months, and days using NodaTime. |
| Working Days | ||
| GET |
/workingdays/{countryCode}/holidays /workingdays/{countryCode}/holidays |
Returns a list of all public holidays within the specified date range for the given country. |
| GET |
/workingdays/{countryCode}/weekends /workingdays/{countryCode}/weekends |
Returns the number of weekend days (e.g., Saturday and Sunday) in the given range. |
| GET |
/workingdays/{countryCode}/off-days /workingdays/{countryCode}/off-days |
Returns the number of non-working days (weekends + holidays) in the given range. |
| GET |
/workingdays/{countryCode}/count /workingdays/{countryCode}/count |
Returns the number of working days between two dates for a specific country, excluding weekends and public holidays. |
| Working Days Pro | ||
| GET |
Is Working Day /workingdays/{countryCode}/is-working-day |
Returns whether given date is a working day. If not, returns the nearest next working day. |
| GET |
Nearest Working Day /workingdays/{countryCode}/nearest-working-day |
Returns the nearest working day on or after the given date. |
| GET |
Non Working Day Info /workingdays/{countryCode}/non-working-info |
Returns whether the day is non-working and explains if it's weekend (1st/2nd day) or a public holiday. |
| GET |
Working Days Non Working Days Range /workingdays/{countryCode}/range |
Returns workingDays and nonWorkingDays for a date range, limited by appsettings. |
| GET |
Check if working day /workingdays/{countryCode}/is-working-day |
Returns whether given date is a working day. If not, returns the nearest next working day. |
| Other endpoints | ||
| GET |
/workingdays/{countryCode}/holidays /workingdays/{countryCode}/holidays |
Returns a list of all public holidays within the specified date range for the given country. |
| GET |
/workingdays/{countryCode}/count /workingdays/{countryCode}/count |
Returns the number of working days between two dates for a specific country, excluding weekends and public holidays. |
| GET |
/workingdays/{countryCode}/weekends /workingdays/{countryCode}/weekends |
Returns the number of weekend days (e.g., Saturday and Sunday) in the given range. |
| GET |
/date-calculator/period/time /date-calculator/period/time |
Calculates the precise time difference (days, hours, minutes) between two date-times. |
| GET |
/date-calculator/period/date /date-calculator/period/date |
Calculates the difference between two dates in years, months, and days using NodaTime. |
| GET |
/workingdays/{countryCode}/off-days /workingdays/{countryCode}/off-days |
Returns the number of non-working days (weekends + holidays) in the given range. |
Date Calculator business days excl weekends and holidays pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|
| PRO | $1.99 / month | — |
|
| ULTRA | $3.99 / month | — |
|
| MEGA | $24 / month | — |
|