---
title: "Days between dates calculator"
description: "Free calculator: days, weeks, whole months, years and working days between two dates, with or without public holidays. Each result comes with the Google Sheets formula (DATEDIF, EDATE, NETWORKDAYS)."
lang: en
canonical: https://goingstellar.ro/tools/days-between-dates/
type: free web tool
price: 0
publisher: GOING STELLAR S.R.L.
alternate_ro: https://goingstellar.ro/ro/unelte/zile-intre-date/
---

> Use the tool (runs in your browser, nothing is uploaded): <https://goingstellar.ro/tools/days-between-dates/>

# Days between dates calculator, with the Google Sheets formula

Pick two dates and see how far apart they are: in days, weeks, whole months, years, months and days, and working days, with or without public holidays. Every number comes with the Google Sheets formula that gives the same result (DATEDIF, EDATE, NETWORKDAYS), so you can do it in your spreadsheet too. It runs in your browser.

364 days

between Thu, 1 January 2026 and Thu, 31 December 2026

| Days | 364 days |
|---|---|
| Weeks and days | 52 weeks |
| Whole months and days | 11 months, 30 days |
| Years, months and days | 11 months, 30 days |
| Working days (Mon–Fri, both dates included) | 261 days |
| Hours | 8,736 |

### The same numbers in Google Sheets

- Days`=B2-A2`
- Whole months`=DATEDIF(A2,B2,"M")`
- Whole years`=DATEDIF(A2,B2,"Y")`
- Months after the whole years`=DATEDIF(A2,B2,"YM")`
- Days after the whole months`=B2-EDATE(A2,DATEDIF(A2,B2,"M"))`
- Working days`=NETWORKDAYS(A2,B2)`

## How each number is worked out

- **Days** is the end date minus the start date. From 1 January to 31 December 2026 that is 364, because the start day is not counted. Tick “Include the end date” when you count both days, for example the length of a holiday: the formula becomes `=B2-A2+1`.
- **Whole months** works the way DATEDIF does in Google Sheets: a month only counts when the end date reaches the same day of the month. From 30 September 2015 to 28 February 2016 that is 4 months, not 5, even though 28 February is the last day of the month. This is the example from Google's own DATEDIF help page.
- **Days after the whole months** uses `=B2-EDATE(A2,DATEDIF(A2,B2,"M"))`. EDATE moves the start date by the whole months and lands on the last day of the month when the month is shorter. We show this formula rather than DATEDIF with "MD", so the days always add up with the months you see.
- **Working days** counts Monday to Friday with both dates included, like `=NETWORKDAYS(A2,B2)`. Pick a country to leave out its public holidays as well; the tool lists the holidays it skipped so you can paste them into the holidays range of NETWORKDAYS. Holidays are calculated from the rules that set them (Romania, US federal, England and Wales); one-off days off announced at short notice are not included.

Need a date N working days away? Use the [business days calculator](https://goingstellar.ro/tools/business-days-calculator/).

In our Google Sheets function reference: [DATEDIF](https://goingstellar.ro/reference/sheets/datedif/) · [all functions](https://goingstellar.ro/reference/sheets/).

## Worked examples

| From → to | Days | Whole months + days | Years, months | Working days |
|---|---|---|---|---|
| 2015-09-30 → 2016-02-28 | 151 | 4 + 29 | 0 y, 4 m | 108 |
| 2026-01-31 → 2026-03-01 | 29 | 1 + 1 | 0 y, 1 m | 20 |
| 2024-02-29 → 2025-02-28 | 365 | 11 + 30 | 0 y, 11 m | 262 |
| 2026-03-15 → 2026-06-15 | 92 | 3 + 0 | 0 y, 3 m | 66 |
| 2000-05-20 → 2026-11-29 | 9,689 | 318 + 9 | 26 y, 6 m | 6920 |

## Questions and answers

**How do I calculate the days between two dates in Google Sheets?**

Put the dates in A2 and B2 and use =B2-A2. If the cell shows a date instead of a number, change its format to Number. =DAYS(B2,A2) gives the same result.

**Why does DATEDIF say 4 months from 30 September to 28 February?**

Because DATEDIF counts a month only when the end date reaches the same day of the month as the start date. 28 February does not reach the 30th, so the fifth month is not complete yet.

**Does the start date count?**

Not in the number of days: 1 to 2 January is 1 day. Working days count both dates, as NETWORKDAYS does. Tick “Include the end date” if you want the calendar count to include both dates too.

**What happens if the end date is before the start date?**

The tool swaps them and tells you. In Sheets, DATEDIF returns #NUM! when the start date is later than the end date, while =B2-A2 simply gives a negative number.

**Is anything sent to a server?**

No. The calculation runs in your browser. The tool keeps your holiday choice in this browser, and the dates in the link after the #, which browsers do not send to servers.

## Sources

[Google Docs Editors Help: DATEDIF](https://support.google.com/docs/answer/6055612) · [Google Docs Editors Help: EDATE](https://support.google.com/docs/answer/3092974) · [Google Docs Editors Help: NETWORKDAYS](https://support.google.com/docs/answer/3092979)
