Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Date & Time

Date Difference Calculator

Compare two dates and get total milliseconds through weeks, a calendar breakdown in years, months and days, complete months, business days, and which date comes first.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Options

Leave blank to compare against right now.

Your result will appear here

Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.

How it works

What you compare

The first date goes in the text box, the second in "Compare with"; leaving the second blank compares against the current moment. A bare YYYY-MM-DD is read as that calendar day in UTC, while other text goes through the browser’s parser, so ISO timestamps with a zone work too. The report is a measure-and-value table.

Two ways of measuring the gap

One set of rows gives the elapsed time in milliseconds through weeks — the same duration expressed in different units. A separate row gives the calendar breakdown in years, months and days using borrow arithmetic, so 31 January to 1 March reads as one month and one day rather than a flat 29 days.

Business days, and how they are bounded

The business-days row walks day by day and counts every Monday to Friday, stopping before the later date, so Monday to Monday is five business days. It is a plain weekday count and knows nothing about public holidays in any country.

Edge cases, and where it runs

Date-only inputs are compared in UTC fields and are not shifted by your timezone, but a timestamp without a zone is read in local time. Negative gaps are ordered first and a relation row says which date came first. Unparseable input is rejected with the accepted forms suggested, and no date you type is sent anywhere.

Questions

How are business days counted?

Each calendar day from Monday to Friday between the two dates counts once; Saturdays and Sundays are skipped. The count is exclusive of the later date.

Does the business-day count know about holidays?

No. It excludes Saturdays and Sundays only, with no calendar of public or regional holidays, so for payroll or delivery estimates subtract those separately.

How is the calendar breakdown different from total days?

The total-days row is simple elapsed time. The calendar breakdown borrows whole months when the day-of-month goes backwards, which is why 2024-01-31 to 2024-03-01 reads as 1 month and 1 day instead of a bare 30-day count.

See category