Skip to content
Embed

Paste this on your site. The attribution link is required and is what makes embedding free.

Days Between Dates Calculator — Find Exact Day Count

Calculate the precise number of days between any two dates with a detailed breakdown into years, months, days, total weeks, total hours, and total minutes.

Days Between Dates

365days

Breakdown

1 year, 0 days

Total Weeks

52

Total Hours

8,760

Total Minutes

525,600

Remaining Days

1

Days Between Dates Reference Table

Time Period Days Weeks Hours
1 month (January) 31 4w 3d 744
1 month (February) 28 / 29 4w 0d / 4w 1d 672 / 696
100 days 100 14w 2d 2,400
1 quarter (Q1 2026) 90 12w 6d 2,160
180 days 180 25w 5d 4,320
1 year (2026) 365 52w 1d 8,760
1,000 days 1,000 142w 6d 24,000

Related Calculators

About this calculator

Days Between Dates Formula

Total Days = |Date2 - Date1| / 86,400,000 ms
Total Weeks = floor(Total Days / 7)
Total Hours = Total Days * 24 | Total Minutes = Total Days * 1,440

Variables Explained

  • Date1, Date2: The two input dates. The calculator takes their absolute difference, so the order does not matter.
  • 86,400,000: The number of milliseconds in one day (24 hours * 60 minutes * 60 seconds * 1,000 milliseconds). This constant converts the millisecond difference to days.
  • Total Days: The absolute count of complete days between the two dates. This is always a non-negative integer.
  • Total Weeks: The integer part of dividing total days by 7. Represents complete 7-day periods.
  • Remaining Days: Total days modulo 7 — the leftover days after extracting complete weeks.
  • Year-Month-Day Breakdown: Uses calendar arithmetic with month and year borrowing for a human-readable duration representation.

Step-by-Step Example

Calculate the days between September 15, 2025 and March 20, 2026:

  1. September 15 to October 15 = 30 days (September has 30 days)
  2. October 15 to November 15 = 31 days (October has 31 days)
  3. November 15 to December 15 = 30 days (November has 30 days)
  4. December 15 to January 15 = 31 days (December has 31 days)
  5. January 15 to February 15 = 31 days (January has 31 days)
  6. February 15 to March 15 = 28 days (February 2026 has 28 days)
  7. March 15 to March 20 = 5 days
  8. Total: 30 + 31 + 30 + 31 + 31 + 28 + 5 = 186 days
  9. Weeks: floor(186/7) = 26 weeks, Remaining: 186 mod 7 = 4 days
  10. Hours: 186 * 24 = 4,464 hours
  11. Breakdown: 6 months, 5 days

Sources

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.

Last updated: November 3, 2026