Calculate the exact difference between two dates in years, months, weeks, days, hours, and minutes β with weekday-only and inclusive options.
Raw day differences simply subtract timestamps and divide by 86,400 seconds. Calendar differences (years and months) use actual calendar rules, so February and leap years are handled correctly and the result matches age calculators and professional tools.
Business date ranges often ignore weekends. Counting weekdays iterates over the range and increments only Monday through Friday, which matches common project planning and workingβdays calculations.
When measuring a stay from Monday to Wednesday, many people count it as three days (Mon, Tue, Wed). The inclusive toggle adds 1 to the difference so that the range includes both endpoints, following this intuitive convention.