All tools

Date Difference Calculator

Years, months, days, weeks, and total time between two dates. Optional business-days mode.

  • days between
  • date diff
  • business days
  • weekdays

About Date Difference Calculator

How long has it been? How many days until then? Asking "what's the difference between these two dates" is one of the most common things people reach for a calculator for — and the answer depends on what you actually want. Sometimes you want a calendar answer ("3 years, 2 months, 18 days"), sometimes you want a total ("1,174 days"), and sometimes you want only the working days, excluding weekends.

This calculator gives you all three at once. The calendar breakdown borrows months and days the way humans naturally count, the total-units cards show the same span expressed in weeks, days, hours, minutes, and seconds, and the business-days figure counts only Monday through Friday between the two dates.

How to use

Pick a "From" and a "To" date-and-time using the two inputs at the top. The result updates instantly: a headline showing the calendar difference (years, months, days), a short hand-friendly breakdown (e.g. "12w 3d 4h"), and six cards with the total expressed in different units.

If you put the later date first, the result shows up negative — there's a swap button between the inputs to flip them. The page defaults the "To" field to right now, so you can leave it alone and just edit "From" for quick "how long ago" lookups.

Frequently asked questions

  • How is the calendar breakdown ("X years, Y months, Z days") calculated?

    The calendar breakdown counts whole years first, then whole months, then leftover days — borrowing from the previous month when the start day of the month is later than the end day. This matches how people intuitively count age and intervals (e.g. 1 February to 28 February is "27 days", not "26 days and a fractional month").

  • What counts as a business day?

    Business days are Monday through Friday between the two dates, inclusive of the start day and the end day. Public holidays are not subtracted — they vary by country and region, so the figure is a working count of weekdays, not a leave-balance calculation.

  • Why does the total-days figure show a fraction?

    Because the inputs include a time of day, the gap between them may not be a whole number of 24-hour days. The total-days, total-weeks, and total-hours cards show the precise figure to four decimal places; the total-minutes and total-seconds cards round down to the integer count.

  • Can the result be negative?

    Yes. If the "From" date is later than the "To" date, the headline figure is shown with a minus sign and tinted red so you can tell at a glance which direction the interval points. Use the swap button between the inputs to flip them around.

  • Does this account for leap years and daylight saving time?

    Yes. The calendar arithmetic treats months and years with their actual lengths (so 29 February exists in leap years), and the total-hours and total-seconds figures are derived from the underlying timestamp difference, which respects daylight-saving clock changes.

More Time & Dates tools