Skip to content
FlareLodge

Days Between Dates

How many days, weeks, and years, months and days are there from one date to another.

By FlareLodge EditorialChecked against U.S. Naval ObservatoryUpdated

Calculator

Your details

Days between is the gap: end minus start. The same date is 0 days between and 1 day if you count both ends. If you reverse the dates, the span is still counted forward.

Days between

2

As years, months and days
0 years, 0 months, 2 days
Days counting both ends
3
Full weeks
0
Days left after those weeks
2
Earlier date
2024-02-28
Later date
2024-03-01
Earlier date falls on
Wednesday
Later date falls on
Friday
Direction
Counted from the start date to the end date.

Calculated privately in your browser — nothing is uploaded.

Your result

What your result means

From 2024-02-28 (Wednesday) to 2024-03-01 (Friday) is 2 days between the dates, or 3 days if both ends count. That is 0 years, 0 months, 2 days, and also 0 full weeks with 2 days left over. Counted from the start date to the end date.

The math

Formula and sources

Formula
Days between = later date − earlier date, in calendar days
Inclusive days = days between + 1
Years and months count whole calendar months, then the leftover days
Days between
the gap. January 5 to January 9 is 4, not 5.
Both ends
add 1 when the question includes the start date and the end date
Month ends
a 31st anniversaries on the last day of a shorter month, the same rule as the age calculator

This page counts calendar days only. It does not remove weekends or holidays. For U.S. business days, use the business days calculator. For an age from a date of birth, use the age calculator. Dates are Gregorian calendar days, with no time of day and no time zone.

The code and tests for this formula are open source (MIT): days-between.ts on GitHub.

Sources we checked this against

  1. 1Leap years (Gregorian calendar rules)U.S. Naval Observatory · aa.usno.navy.mil

Formula last checked 2026-11-06. Found an error? Tell us and we will fix it.

Step by step

Two worked examples

Example 1

Across the 2024 leap day

Days between

2

Start date
2024-02-28
End date
2024-03-01

2024 is a leap year, so February 29 sits between these dates. The gap is 2 days (February 29 and March 1 are the two steps). Counting both ends is 3.

Example 2

A full leap year

Days between

366

Start date
2000-01-01
End date
2001-01-01

From 1 January 2000 to 1 January 2001 is 366 days, because 2000 is a leap year. That is 1 years, 0 months, 0 days.

Comparison of the two examples
ResultExample 1Example 2
Days between2366
As years, months and days0 years, 0 months, 2 days1 years, 0 months, 0 days

Questions

Frequently asked questions

How many days are there between two dates?

Subtract them. January 5 to January 9 is 4 days between. If you need to count both the start and the end, add 1. This page shows both numbers.

Is this the same as an age?

The years, months and days use the same calendar rules as the age calculator. An age is that span measured from a date of birth. This page takes any two dates. The age calculator also gives the next birthday.

Does this count business days?

No. Weekends and holidays are included in the calendar count. The business days calculator removes Saturdays, Sundays, and U.S. federal holidays on the OPM list.

What if the end date is earlier?

The span is counted from the earlier date to the later one, and the page says so. The number of days does not become negative.

Working out a daily average or a percent change? See average per day and percentage questions worked out.