Date Difference Calculator: How Many Days Between Two Dates?
Pick a start date and an end date to see the gap in days, in years, months and days, in weeks and in business days (Saturdays, Sundays and your holidays left out). Leap years and month ends are handled for you, and nothing is saved.
- PriceFree, no login or sign-up needed
- Your dataCalculated in your browser; nothing is saved
- Works onPhone, tablet or computer, any modern browser
- Made byDr. Muhammad Aammar Tufail, Codanics
- Published24 November 2026
- Last updated24 November 2026
📚 How to cite this tool
This tool is free. If it helped your thesis, paper, report or assignment, please cite it. It keeps the tools free and helps other students find them.
Tufail, M. A. (2026). Date difference calculator [Online tool]. Codanics. Retrieved 24 November 2026, from https://codanics.com/tools/date-difference-calculator/
In-text citation: (Tufail, 2026) · Narrative: Tufail (2026)
The access date is today’s date, filled in automatically. Author: Muhammad Aammar Tufail. Published 24 November 2026.
How to use the date difference calculator
- Choose the start date and the end date. Use End date = today for a countdown or a time-since question.
- Tick Include the end date if both the first and the last day should count (for example leave days, or a hotel stay counted in days).
- Optional: paste public holidays, one per line, so that business days skip them as well as Saturdays and Sundays.
- Read the total days, the years-months-days answer, weeks and business days, with the working shown underneath.
How to count the days between two dates
The number of days between two dates is the count of midnights you pass going from the start date to the end date; the end date itself is not counted unless you choose to include it. From 15 January 2026 to 24 November 2026 is 313 days. If both days should count, as with annual leave, add one: 314 days.
This calculator turns each date into a whole-day number in UTC before subtracting. Because no clock time is involved, daylight-saving changes and your computer’s time zone cannot shift the answer by a day, a common bug in simple date scripts.
The formulas
| Result | How it is worked out |
|---|---|
| Total days | day number (end) − day number (start), + 1 if the end date is included |
| Years, months, days | add whole months to the start date for as long as you stay on or before the end date, then count the leftover days |
| Weeks | total days ÷ 7, with the remainder in days |
| Business days | days that are Monday to Friday, minus holidays that fall on a weekday |
Worked example
Start: Thursday 15 January 2026. End: Tuesday 24 November 2026.
- Total: 16 days left in January + 28 (February, not a leap year) + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 (March to October) + 24 in November = 313 days.
- Calendar form: 15 January + 10 months = 15 November; 15 to 24 November = 9 days. So 10 months and 9 days.
- Weeks: 313 ÷ 7 = 44 weeks and 5 days.
- Business days: 223 weekdays, minus Pakistan Day (Monday 23 March) and Independence Day (Friday 14 August) = 221 working days.
Leap years and month ends
Months have 28 to 31 days, so “one month” is not a fixed number of days. When the start day does not exist in the target month, the calculator uses the last day of that month: 31 January plus one month is 28 February (29 February in a leap year). A year is a leap year if it divides by 4, except century years, which must divide by 400. So 2024 and 2028 are leap years, 2100 is not, and 2000 was.
Common mistakes
- Off by one day: decide first whether the end date counts. Deadlines and ages usually do not; leave and hotel nights are often counted differently, so check the rule you work under.
- Counting months as 30 days: 10 months can be anything from 303 to 306 days. Use the calendar answer for contracts and the total days for interest or visa rules.
- Forgetting holidays: working-day counts for notices, refunds or court deadlines usually skip public holidays too. Add yours in the box.
Frequently asked questions
How many days are there between two dates?
Subtract the start date from the end date. For example, 15 January 2026 to 24 November 2026 is 313 days, or 314 days if you count both the first and the last day.
Does the calculator include the end date?
Not by default, which matches how most date calculators and spreadsheets (end − start) work. Tick Include the end date to add one day.
How are business days calculated?
Only Monday to Friday are counted, and any holidays you list are removed if they fall on a weekday. The range is the same as for the total days.
How do I count working days with public holidays in Pakistan or India?
Paste the holiday dates for your country and year into the holidays box, one per line, as YYYY-MM-DD. Holidays that fall on Saturday or Sunday are ignored because those days are already excluded.
Does it handle leap years?
Yes. February has 29 days in leap years (2024, 2028) and 28 days otherwise, and the calculator uses the real calendar for every month.
Is my data saved?
No. The dates are calculated in your browser and nothing is saved or uploaded. Close the page and they are gone.
Do I need to log in or create an account to use the date difference calculator?
No. There is no login, no sign-up and no email required. Open the page and start using it straight away, for free, on any device.
How do I cite this tool in my thesis or paper?
Use the citation box on this page. In APA 7th edition: Tufail, M. A. (2026). Date difference calculator [Online tool]. Codanics. Retrieved [date you used it], from https://codanics.com/tools/date-difference-calculator/. BibTeX, RIS (EndNote, Mendeley, Zotero), MLA, Harvard, Chicago and Vancouver formats are also available.
Free guides and courses from Codanics
More free tools
See all free Codanics tools → · Codanics on YouTube · WhatsApp channel