Skip to content
ToolZone

Date Difference

Calculate the exact difference between two dates in days, weeks, months, and years, useful for tracking deadlines and timelines.

Runs in your browser. Nothing you enter or upload leaves your device.

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

About the Date Difference

How many days until a holiday, or how long ago did a project start? This date difference tool measures the gap between any two dates and reports it four ways: total days, full weeks, calendar months and decimal years.

How it works

The tool subtracts one date from the other and divides by the number of milliseconds in a day, rounding down to whole days. The end date itself is not counted, so January 1 to January 2 is one day. Weeks are those days divided by 7 and rounded down.

Months is the difference in calendar months between the two dates, based only on the month and year, so January 31 to February 1 counts as 1 month. Years is total days divided by 365.25, shown with two decimals.

How to use

  1. 1

    Choose the Start date.

  2. 2

    Choose the End date.

  3. 3

    Read Days, Weeks, Months and Years.

Worked examples

Days until Christmas

From New Year's Day to Christmas Day 2026.

Input
Start = 2026-01-01, End = 2026-12-25
Result
Days = 358, Weeks = 51, Months = 11, Years = 0.98

Since the year 2000

From January 1, 2000 to November 14, 2026.

Input
Start = 2000-01-01, End = 2026-11-14
Result
Days = 9814, Weeks = 1402, Months = 322, Years = 26.87

Short project

A project that ran from February 10 to April 1, 2026.

Input
Start = 2026-02-10, End = 2026-04-01
Result
Days = 50, Weeks = 7, Months = 2, Years = 0.14
Limitations
Months count calendar-month changes and ignore the day of the month, so January 31 to February 1 shows 1 month. Years is an approximate decimal (days / 365.25), not whole birthdays or anniversaries. Only dates are compared; times of day are not supported.
Assumptions
The end date is excluded from the day count. Both dates use the Gregorian calendar.
Privacy
Dates are compared in your browser and are not stored or sent anywhere.

Frequently asked questions

Does this account for leap years?+

Yes. It uses real calendar dates, so February 29 is counted whenever it falls between the two dates.

Does the count include the end date?+

No. The tool counts the days between the dates, so the end date is excluded. Add one if you need an inclusive count.

How many days are there between two dates?+

Pick both dates above and read the Days box. For example, January 1 to December 25, 2026 is 358 days.

Why does a one-day gap show 1 month?+

Months are counted by calendar month and year only. January 31 and February 1 fall in different months, so they show as 1 month apart even though only one day separates them.

Can I count only weekdays?+

No, this tool counts every calendar day. Use the business days calculator to exclude Saturdays and Sundays.

Related tools