Date Difference Calculator
Count the exact days between two dates — optionally including the end date — and see the gap in years, months and days, weeks, hours and minutes, plus working days with weekends and US, Mexican or Spanish holidays left out.
How it works
days = second date − first date (+1 if the end date is included) · weeks = days ÷ 7 · months and years by calendar walking · hours = days × 24 · working days = days − weekend days − holidays
The day count is the exact number of calendar days from the first date to the second, so consecutive days are 1 apart; switch on “Include the end date” to count both ends, as you would for the length of a trip or a rental. Weeks are days divided by seven with the remainder shown. The month and year figures walk the real calendar, so January 15 to March 15 is exactly 2 months no matter how long February is, and the decimal-year figure adds the share of the current year-long stretch. Hours, minutes and seconds are the day count times 24, 1,440 and 86,400 — or the exact gap when you enter start and end times. Working days go through every date in the range and leave out the weekend days you pick and, optionally, US federal holidays (with their observed Friday/Monday dates), Mexico’s official rest days or Spain’s national holidays.
Worked example
From January 1, 2026 to September 11, 2026 is 253 days: 36 weeks and 1 day, or 8 months and 10 days by the calendar, 6,072 hours. Of those 253 days (January 1 counted, September 11 not), 181 are Monday–Friday and 72 are weekend days; leaving out US federal holidays takes away New Year’s Day, Martin Luther King Jr. Day, Presidents’ Day, Memorial Day, Juneteenth, the observed Independence Day (Friday, July 3) and Labor Day, for 174 working days. Including the end date makes it 254 days.
Sources: OPM — Federal holidays
Frequently asked questions
Why do some tools show one day more?
They count inclusively — both endpoint dates — which suits questions like “how many days is my trip”. This calculator shows elapsed days by default; turn on “Include the end date” to count both ends.
How are working days counted?
Every date from the first date up to (but not including) the second date is checked, or through the second date when the end date is included. Weekend days you choose are left out, and so are the selected public holidays when they fall on a working day.
How can the months figure disagree with days ÷ 30?
Because calendar months run 28 to 31 days. Walking real months is what makes “January 15 to March 15” exactly 2 months, which a 30-day approximation misses.
Can I include times of day?
Yes. Open More options and type a start and end time; the exact duration in days, hours and minutes and the total hours and minutes then use those times.
What if I enter the later date first?
The dates are swapped automatically and a note says so, so the result is always a positive gap.
Related calculators
This calculator is for educational purposes. Double-check important results before acting on them.