Date Calculator
Calculate the number of days between two dates, add or subtract time from a date, count business days, and view useful date information. All processing happens locally in your browser.
Loading date module...
What is a Date Calculator?
A Date Calculator helps you calculate the difference between two dates, add or subtract time from a date, count business days, and inspect information about a specific calendar date.
Date calculations can become confusing because months have different lengths. A month may contain 28, 29, 30, or 31 days, and leap years add an extra day to February. A calendar-aware calculator handles these differences instead of assuming that every month has 30 days or every year has 365 days.
You can use this tool for project planning, invoice due dates, application periods, event schedules, employee working-day calculations, exam eligibility dates, subscription periods, and other date-based tasks.
How to use the Date Calculator
The Date Calculator contains four modes. Select the mode that matches the calculation you need:
- Days Between Dates: Select a start date and an end date. Choose whether the ending date should be included, and then calculate the total days, weeks, and calendar duration.
- Add or Subtract: Select a starting date, choose Add or Subtract, and enter a number of years, months, weeks, or days. The calculator returns the resulting date.
- Business Days: Select a date range, choose the weekend days used by your organization, and optionally add holidays. The calculator excludes the selected non-working days.
- Date Information: Select one date to view its weekday, day number in the year, ISO week number, quarter, leap-year status, and other calendar details.
Check the selected mode and inclusion settings before using the result. Including the starting or ending date can change the answer by one day.
How to calculate days between dates manually
For dates in the same month, subtract the earlier day number from the later day number.
Example: Dates in the same month
Calculate the number of days from January 10, 2026 to January 15, 2026.
- End day: 15
- Start day: 10
- 15 − 10 = 5 days
Result: The difference is 5 days when the ending date is excluded.
When both January 10 and January 15 are counted, add one day. The inclusive result is 6 days.
For dates in different months, count the days remaining in the first month, add the days in any complete months between them, and then add the days passed in the final month.
Example: Dates across two months
Calculate the number of days from February 20, 2026 to March 5, 2026.
- February 2026 has 28 days.
- Days after February 20: 28 − 20 = 8 days.
- Days from March 1 through March 5: 5 days.
- 8 + 5 = 13 days.
Result: The date difference is 13 days.
When the range crosses several months, add the complete number of days in each middle month. Remember that February has 29 days during a leap year.
Inclusive and exclusive date counting
Date calculations can use exclusive or inclusive counting. This is one of the most common reasons two calculations produce different answers.
- Exclusive ending date: The ending date is not counted. January 1 to January 2 is 1 day.
- Inclusive ending date: The ending date is counted. January 1 through January 2 is 2 days.
- Inclusive start and end dates: Add one day to the normal date difference when both boundary dates should be counted.
Inclusive counting is often used for attendance periods, hotel stays described as calendar dates, event schedules, leave periods, and application windows. Always check the rules of the organization using the date range.
Calendar duration versus total days
Total days and calendar duration describe the same period in different ways.
- Total days gives one continuous number, such as 270 days.
- Calendar duration breaks the period into years, months, and days, such as 8 months and 27 days.
Example: Project duration
The difference between January 15, 2026 and October 12, 2026 is:
- Total duration: 270 days
- Calendar duration: 8 months and 27 days
Do not calculate calendar months by dividing total days by 30. Month lengths vary, so a calendar-aware calculation is required for an accurate years, months, and days breakdown.
What is a business day?
A business day is a day when an organization normally operates. For many offices, banks, schools, and government departments, business days are Monday through Friday. Saturday and Sunday are excluded because they are commonly treated as weekend days.
However, business-week rules are not the same everywhere. The correct weekend setting depends on the country, employer, institution, and type of work.
- Saturday and Sunday weekend: Common for organizations that work Monday through Friday.
- Friday and Saturday weekend: Used by some organizations and regions where the working week runs from Sunday through Thursday.
- Sunday-only weekend: Used by some six-day working schedules where Monday through Saturday are business days.
- Saturday-only weekend: Possible for organizations that operate on Sunday but close on Saturday.
- Custom weekend: Shift-based businesses may exclude different days, such as Tuesday and Wednesday.
- No weekend exclusion: Some operations run every day, so only specific holidays or closure dates may need to be excluded.
The Date Calculator lets you select the weekend pattern that matches your situation. It does not assume that Saturday and Sunday are non-working days for every user.
How to calculate business days manually
For a standard Monday-to-Friday workweek, each complete seven-day week contains five business days and two weekend days.
After counting the complete weeks, check the remaining days individually and count only Monday through Friday.
Example: Standard Monday-to-Friday schedule
Calculate the business days from Monday, August 3, 2026 through Friday, August 14, 2026, including both dates.
- The inclusive range contains 12 calendar days.
- It contains one complete seven-day week: 1 × 5 = 5 business days.
- The remaining five days are Monday through Friday: 5 more business days.
- 5 + 5 = 10 business days.
Result: The range contains 10 business days and 2 weekend days.
If a weekday holiday falls within the date range, subtract it from the business-day total.
Example: Subtracting a holiday
Using the previous example, suppose Wednesday, August 5 is a holiday.
- Business days before holidays: 10
- Weekday holidays: 1
- 10 − 1 = 9 business days
Result: The final count is 9 business days.
Do not subtract a holiday twice. When a holiday already falls on an excluded weekend day, it does not reduce the business-day total again.
Manual formula for custom workweeks
When your organization uses a different weekend pattern, first calculate how many working days exist in one complete week.
Examples:
- Saturday and Sunday excluded: 7 − 2 = 5 working days per week.
- Friday and Saturday excluded: 7 − 2 = 5 working days per week.
- Sunday only excluded: 7 − 1 = 6 working days per week.
- No weekend days excluded: 7 − 0 = 7 working days per week.
Then review any remaining days after the complete weeks and count only the weekdays allowed by your selected work schedule. Finally, subtract holidays that fall on valid working days.
How leap years affect date calculations
A normal year contains 365 days. A leap year contains 366 days because February has 29 days instead of 28.
A year is a leap year when:
- It is divisible by 4, except for most years divisible by 100.
- A year divisible by 400 remains a leap year.
Leap-year examples
- 2024 is a leap year.
- 1900 is not a leap year because it is divisible by 100 but not 400.
- 2000 is a leap year because it is divisible by 400.
- 2100 will not be a leap year.
For example, February 28, 2024 to March 1, 2024 is 2 days because February 29 falls between the two dates. The same calculation in 2023 is 1 day because 2023 is not a leap year.
Adding months and years to a date
Adding days is straightforward because each added day moves to the next calendar date. Adding months or years requires an additional rule when the target month does not contain the original day number.
The calculator uses month-end clamping. This means that when the requested day does not exist in the target month, the result becomes the final valid day of that month.
- January 31, 2026 + 1 month = February 28, 2026
- January 31, 2024 + 1 month = February 29, 2024
- February 29, 2024 + 1 year = February 28, 2025
- March 31, 2026 − 1 month = February 28, 2026
This avoids unexpected overflow into the following month.
Use cases
- Project planning: Calculate the total duration between a project start date and delivery date.
- Invoice management: Add 30, 60, or 90 days to an invoice date to estimate a payment due date.
- Employee scheduling: Count working days while excluding weekends and organization-specific holidays.
- Application periods: Check the number of days remaining before an application closes.
- Exam eligibility: Compare a date of birth with an official age cutoff date using the related Age Calculator.
- Travel planning: Calculate the number of calendar days between departure and return dates.
- Event planning: Add weeks or months to determine preparation deadlines.
- Subscription tracking: Estimate renewal dates by adding a defined number of days, months, or years.
For legal, tax, banking, recruitment, or official deadlines, confirm the result against the rules published by the responsible authority. Some deadlines use special rules for weekends, public holidays, time zones, submission times, or local office closures.
Common date calculation mistakes
Date calculation pitfalls
- Dividing by 30 or 365: This can produce an incorrect calendar duration because months and years have different lengths.
- Confusing inclusive and exclusive counting: Including the end date normally increases the result by one day.
- Assuming every weekend is Saturday and Sunday: Workweek patterns can differ by country and organization.
- Subtracting weekend holidays twice: A holiday on an already excluded weekend should not be deducted again.
- Automatically excluding public holidays: Holiday rules vary, so users should add the dates that apply to their calculation.
- Ignoring leap years: A period crossing February 29 may contain one additional day.
- Using time-based date parsing: Time-zone conversion can shift a selected calendar date when date-only values are not handled consistently.
- Treating estimates as official deadlines: Legal and regulatory rules may include exceptions that a general date calculator cannot determine.
Privacy and data handling
The Date Calculator is designed to perform calculations in your browser using the dates and options you enter. Date values should not be included in analytics events, page URLs, or calculation tracking.
Avoid entering unnecessary personal information into custom holiday labels. For sensitive legal, financial, employment, or contract dates, review your browser, device, extension, and network security practices before processing confidential information.
Important limitations
The Date Calculator works with calendar dates rather than exact times of day. It does not calculate hours across time zones, daylight-saving changes, or location-specific office closing times.
Business-day results depend on the weekend days, holiday dates, and inclusion settings selected by the user. The calculator does not automatically know every national, state, bank, school, company, or religious holiday.
Results are useful for planning and general calculations, but official deadlines should be verified using the relevant government notice, contract, court rule, tax authority, employer policy, or other primary source.