Days between dates: count them exactly

Type two dates and see the days between them, in weeks, in years, months and days, and the weekdays among them, in your browser: nothing you type is uploaded.

  • Nothing uploaded
  • Any two dates
  • The working shown
  • Free, no sign-up

Start date

End date

Count the end date too?

Enter the end date to see the days between.

Getting ready…

Quick facts from our tests

Check it yourself: once the page has loaded, turn off Wi-Fi and mobile data, and the Days Between Dates still works. Your browser's network panel (F12 on a computer) shows that what you type is never sent. Google's ad code loads here too; our code never gives it what you type. How we prove it

How to count the days between two dates

  1. Type the start date

    Day, month and year.

  2. Type the end date

    And say if it counts.

  3. Read the days

    With weeks and weekdays.

When this tool isn't the right fit

  • You need working days without public holidays. Holidays are not taken off; subtract the ones in your span from the weekday count.
  • Your rule counts days its own way, such as a court or a notice period. Follow the rule's own counting; the page lets you count the end date or not.
  • You need a time span in hours and minutes. The page counts whole dates only.

Why count days with PDFGuild

More free tools

Private like this one: your files stay on your device.

Days Between Dates: the complete guide

Counting the end date or not, weeks, months and years, weekdays, leap years, the working and limits.

In this guide
  1. What it does
  2. Step by step
  3. The rules
  4. Real results
  5. Counting the end date
  6. Years, months and days
  7. Weekdays and weekends
  8. Everyday uses
  9. Worked examples
  10. Common mistakes
  11. Reading the answer
  12. Leap years
  13. Days in each month
  14. Counting by hand
  15. A year in days
  16. Countdowns
  17. Privacy
  18. Tips
  19. Limits
  20. Terms explained

What Days Between Dates does

Days Between Dates counts the days from one date to another. Type the two dates and the answer appears at once: the number of days, the same span in weeks and days and in years, months and days, and how many of the days are weekdays, Monday to Friday, and how many are Saturdays and Sundays. You choose whether the end date is counted, with the working shown step by step.

The start date begins as today, so the page also counts the days from today to any date. It all happens in your browser: nothing you type is uploaded or kept.

When it helps:

  • How many days are left until an exam, a wedding, a trip or a due date.
  • How long something lasted: a project, a stay, a course or a loan.
  • Working days between two dates, Monday to Friday.
  • A span in weeks, for a pregnancy diary, a course plan or a training schedule.

Step by step

  1. Type the start date: the day and the year, and choose the month by its name. It starts as today; "Use today's date" brings today back after you change it. Digits typed in Hindi and other scripts are read as 0 to 9.
  2. Type the end date the same way.
  3. Choose whether to count the end date: No, up to the end date, or Yes, which adds one day.
  4. Read the answer: the days in large type, then the weeks and days, the years, months and days, the weekdays and the weekends, and both dates with their weekdays.
  5. Open "How this was worked out" to see the four steps, and Copy result for the answer as text.

Try an example puts in 15 August 2026 and 26 January 2027.

The rules, in full

These are the calculator's rules, and the same rules are checked by our tests.

PartThe ruleExample
DaysThe start date and each day after it, up to but not including the end date; one more when the end date is counted1 to 2 January: 1 day, or 2 counting both
WeeksThe days in whole weeks of 7, and the days left over164 days: 23 weeks and 3 days
Years, months and daysWhole years, then whole months, then days, by the Age Calculator's rule: a month later is the same day number, or the month's last day when it is shorter31 January to 29 February 2024: 1 month, 0 days
WeekdaysMonday to Friday among the days counted; no public holidays are taken offThe example: 116 weekdays
OrderAn end date before the start date is counted the other way round, and a note says so1 March 2027 to 1 November 2026: 120 days
RangeYears 1900 to 9999 on the Gregorian calendar, leap years included29 February 2024 is a day; 29 February 2026 is not

Real results from our tests

We tested the Days Between Dates with headless Chromium 148, the open-source browser Chrome is built on, on a Windows laptop with an Intel Core i7-1185G7 and 32 GB of memory, on 1 November 2026. Other work was running on the laptop at the same time, so times vary a little from run to run: each time below is the middle one of 3 runs.

Checked against a second program. Python's own datetime and calendar modules, with none of the page's code, counted 10,000 random pairs of dates from 1900 to 9999, with and without the end date, and the page gave the same answers every time: the days, the weeks and days, the years, months and days, and the weekdays and weekends.

The answer is drawn at once. The page worked out an answer in 1.70 milliseconds or less, in the middle of 3 runs of 200 different inputs worked out in a row, not counting the moment the browser takes to paint the screen.

Size and offline. On a first visit the page downloads about 0.1 MB for the tool: the page, its styles, its scripts and the fonts, with Google's ad code not counted. In our test we switched the network off after the page had loaded and pressed Try an example: the answer showed 0.1 seconds later or less in each of 15 runs.

Phone-sized screen. We also ran the tests on a phone-sized screen in headless Chromium (390 × 844 pixels, with touch). That is not a real phone. Every button and box was 44 pixels high or more, and the page did not scroll sideways. These tests don't cover Safari or Firefox.

Try it yourself: press "Try an example" at the top of this page. It puts 15 August 2026 and 26 January 2027 in the boxes, and the answer is 164 days: 23 weeks and 3 days, or 5 months and 11 days, with 116 weekdays. Then choose to count the end date: 165 days.

Try the example

Counting the end date, or not

The one choice that changes the answer is whether the end date counts. Not counting it gives the gap between the two dates: from 15 August 2026 to 26 January 2027 is 164 days, the number of nights a guest would stay. Counting it gives the days the span covers, both dates included: 165 days, the number of days a course running from the first date to the last would take.

Neither is wrong; they answer different questions. A whole year shows the difference clearly: 1 January to 31 December 2026 is 364 days not counting the end date, and 365 days, exactly one year, counting it. When a rule, a form or an agreement asks for a number of days, read how it counts, and choose to match; if it doesn't say, ask the office that set it.

Days Between Dates after its example: 164 days from Saturday, 15 August 2026 to Tuesday, 26 January 2027, which is 23 weeks and 3 days, with 116 weekdays
The days between our two example dates, counted in the browser.

Years, months and days

Months have different lengths, so a span in months needs a rule. This page uses the same rule as our Age Calculator: a month later is the same day number in the next month, or that month's last day when it is shorter. So 31 January 2024 to 29 February 2024 is exactly 1 month, and the page adds a note when the rule was used.

The example shows how it counts: from 15 August 2026, 5 whole months bring you to 15 January 2027 without passing 26 January 2027, and 11 more days reach it, so the span is 0 years, 5 months and 11 days. Counting the end date, it is 5 months and 12 days. Days and weeks need no rule at all, so they are the safest numbers to quote.

Weekdays and weekends

The page counts how many of the days are weekdays, Monday to Friday, and how many are Saturdays and Sundays. Each whole week has 5 weekdays, and the days left over are counted by name: in the example, 23 whole weeks give 115 weekdays, and the 3 days left over, a Saturday, a Sunday and a Monday, add 1, for 116 weekdays and 48 weekend days.

Public holidays are not taken off, because they differ from state to state, from bank to bank and from year to year: the note under every answer says so. For working days, take the holidays in your span off the weekday count yourself; for a job that works on Saturdays, add the Saturdays back.

Everyday uses

  • A countdown: keep the start as today and type the day of the exam or the trip.
  • Days of a stay or a trip, not counting the end date for nights.
  • A course or a leave, counting both dates.
  • Working days for a plan, from the weekday count, less the holidays.
  • The date a number of days away: use Add Days to Date, which works the other way round.

For your age on a date, in years, months and days, use the Age Calculator.

Worked examples

Some spans people often count, with the end date not counted unless the row says so:

From and toDaysWeeks and daysWeekdays
1 January 2026 to 15 August 202622632 weeks, 2 days162
1 November 2026 to 25 December 2026547 weeks, 5 days39
2 to 27 November 2026, both counted263 weeks, 5 days20
1 November 2026 to 1 May 202718125 weeks, 6 days130
1 April 2026 to 31 March 2027, both counted36552 weeks, 1 day261
1 January 2000 to 1 November 20269,8011,400 weeks, 1 day7,000

A financial year, 1 April to 31 March, counted with both dates, is 365 days, or exactly 1 year, 0 months and 0 days, with 261 weekdays. In years, months and days, 1 November 2026 to 1 May 2027 is exactly 6 months, though it is 181 days, and 1 January 2000 to 1 November 2026 is 26 years and 10 months.

Common mistakes

  • Swapping the day and the month. 03/08 can be 3 August or 8 March; choosing the month by name avoids it.
  • Counting the end date when the rule doesn't, or the other way round: the answers differ by one day.
  • Treating months as 30 days. Months are 28 to 31 days long, so 6 months can be 181 to 184 days; quote days when it must be exact.
  • Taking weekdays as working days. Holidays are not taken off; subtract the ones in your span.
  • Forgetting the leap day. The page counts 29 February in leap years; a hand count by 365 days a year misses it.
  • Using the wrong year. Check both years in the boxes; today's date is the start until you change it.

Reading the answer

The large figure is the number of days, counted the way you chose. Under it come the same span in weeks and days, in years, months and days, the weekdays and the Saturdays and Sundays, and the two dates with their weekdays, so you can check you typed the right ones: the example runs from Saturday, 15 August 2026 to Tuesday, 26 January 2027. A line says whether the end date was counted, and notes say when the dates were swapped or the month-end rule was used. Copy result gives all of it as four lines of text, ready to paste.

Leap years and the calendar

The page counts on the Gregorian calendar, the one most of the world uses, with its leap year rule: a year is a leap year if it divides by 4, except years ending in 00, which must divide by 400. So 2024 and 2028 have 29 February, 2026 does not, 2000 did and 2100 will not. Every leap day inside a span is counted, so 31 January 2024 to 29 February 2024 is 29 days, and the same span in 2026, which has no 29 February, can't be typed at all: the page asks for a real date.

Because whole days are counted on the calendar, the answer never depends on time zones or on the time of day: a date is a date. The only thing taken from your device is today's date, for the start date until you change it.

Days in each month

Counting by hand, these are the lengths to add up:

MonthDaysMonthDays
January31July31
February28, or 29 in a leap yearAugust31
March31September30
April30October31
May31November30
June30December31

Thirty days has September, April, June and November, as the old rhyme says; all the rest have 31, except February. A year has 365 days, or 366 in a leap year, and 52 weeks and 1 day, or 2 in a leap year, which is why a date's weekday moves on by one each year, and by two after a leap day.

Counting by hand

To check the example by hand, count what is left of the first month, then the whole months, then the days of the last month. From 15 August 2026, 16 days are left in August; then come September's 30, October's 31, November's 30 and December's 31; then the 26 days of January 2027: 16 + 30 + 31 + 30 + 31 + 26 = 164. Counting the end date adds one: 165.

The other forms come from the same count. 164 is 23 × 7 + 3, so 23 weeks and 3 days. In months, 15 August to 15 January is 5 whole months, and 15 to 26 January is 11 days more: 5 months and 11 days.

A year in days

A year is not always the same number of days. 1 November 2026 to 1 November 2027 is 365 days, with 260 weekdays; 1 November 2027 to 1 November 2028 is 366, because 29 February 2028 falls in between, with 262 weekdays. In years, months and days, both are exactly 1 year. When a rule says a year, check whether it means the calendar year or 365 days.

Counting down from today

The start date is today's date until you change it, so the page works as a countdown. On Sunday, 1 November 2026, Christmas Day, Friday, 25 December 2026, is 54 days away, or 7 weeks and 5 days, with 39 weekdays; 31 March 2027, the last day of the financial year, a Wednesday, is 150 days away, or 4 months and 30 days, with 107 weekdays. Count the end date as well if the last day itself counts.

Private: your dates stay on your device

What you type never leaves your device. The calculator runs inside your browser and has no upload step: it never sends the dates you type anywhere, and it doesn't save them, so closing the page forgets them. The page's Content Security Policy lets it contact only this site and Google's ad service, which pays for the site; our code never gives your numbers to the ad code. You can check it yourself in your browser's network panel (F12 on a computer): working out the answer adds no request that carries what you typed.

Read our privacy policy and how we prove your files are never uploaded.

Days Between Dates after its example: 164 days from Saturday, 15 August 2026 to Tuesday, 26 January 2027, which is 23 weeks and 3 days, with 116 weekdays, at a phone's size with the internet switched off by our test, between our test's bands that read "Internet switched off" and "Nothing uploaded: 0 requests sent data"
Proof from our testOn 9 November 2026, our test opened Days Between Dates at a phone's size, switched the internet off and ran it on its built-in example. It finished with no connection, and none of the page's 18 requests sent any data.How we test, and how to check it yourself

Tips

  • Choose the month by name, so the day and the month can't be swapped.
  • Decide on the end date before you read the answer, and match the rule you are following.
  • Quote days or weeks when a span must be exact; months depend on a rule.
  • Take holidays off the weekday count for working days.
  • Copy the result to keep the answer with both dates.

Limits

  • No public holidays are taken off the weekdays.
  • Whole dates only: no times of day or time zones; today is your device's date.
  • Years 1900 to 9999, on the Gregorian calendar.
  • Months follow one rule, the Age Calculator's; other tools may count months another way.
  • Not a legal count. Laws, courts and offices have their own ways of counting days; follow theirs.

Terms explained

Inclusive
Counting both the start and the end date.
Weekday
Monday to Friday.
Leap year
A year with 29 February: every fourth year, but not years ending in 00 unless they divide by 400.
Gregorian calendar
The calendar most of the world uses, with its leap year rule.
Month-end rule
The rule that a month after the 31st is the next month's last day when it is shorter.

From the blog

Days Between Dates and related jobs, explained step by step. See all 90 articles

Frequently asked questions

How do I count the days between two dates?

Type the two dates. The days between them appear at once, with the same span in weeks and in years, months and days, and the weekdays among them.

Does it count the end date?

Only if you choose to: No counts up to the end date, Yes adds one day. 15 August 2026 to 26 January 2027 is 164 days, or 165 counting both.

How many days are there from 1 January to 31 December?

364 not counting the end date, 365 counting both, in a year that isn't a leap year, such as 2026.

How are weekdays counted?

Monday to Friday among the days counted: 5 for each whole week, plus the leftover days that are weekdays. Public holidays are not taken off.

Does it take off holidays?

No. Holidays differ by state, bank and year, so take the ones in your span off the weekday count yourself.

How does it count months?

A month later is the same day number, or the month's last day when it is shorter, the Age Calculator's rule: 31 January to 29 February 2024 is 1 month.

What if the end date is before the start date?

The two are counted the other way round, and a note says so: 1 March 2027 to 1 November 2026 is 120 days.

Does it handle leap years?

Yes. 29 February counts in leap years, and the page counts on the calendar, so every leap day is in the sum.

Can I count the days from today?

Yes. The start date begins as today, so type only the end date. Use today's date brings today back.

How far back or ahead can I go?

From the year 1900 to the year 9999.

Can I find the date a number of days away?

Use Add Days to Date: a date plus or minus days, weeks, months or years.

Is the Days Between Dates free?

Yes. There is no sign-up and no limit on how often you use it. Ads from Google help pay for the site, and they are kept apart from the calculator.

Is what I type uploaded anywhere?

No. The calculator has no upload step: it never sends the dates you type anywhere, and it doesn't save them. Google's ad code loads on the page, and our code never gives it what you type.

Does it work offline?

Yes, once the page has loaded: the sums are done by your browser. In our test the example's answer showed 0.1 seconds or less after the network was switched off, in each of 15 runs.

Does it save or remember what I type?

No. Closing or reloading the page forgets it. Use Copy result to keep a one-line summary.

By the PDFGuild team · Updated · How we test