Date Calculator

Utilities Client-side date time age calculator duration difference add subtract days between

This tool runs entirely client-side, in your browser: your data is never sent anywhere.

What it does

A multi-purpose date toolkit that runs entirely in your browser:

Try it

How it works

Difference between two dates

The tool computes the exact calendar difference (years, months, days) between the two dates by walking month-by-month/day-by-day rather than just dividing total milliseconds — this correctly handles varying month lengths and leap years. It also shows the total elapsed time in several units (total days, total weeks, total hours, total minutes) for convenience.

If the end date is earlier than the start date, the two are swapped automatically and a note is shown.

Add / subtract from a date

Starting from a base date, adds or subtracts a chosen amount of days, weeks, months, years, hours, or minutes. Adding/subtracting months or years uses calendar-aware arithmetic (via setMonth/ setFullYear), so e.g. adding 1 month to January 31st correctly lands on the last day of February rather than overflowing into March.

Age calculator

Computes an exact age in years/months/days as of now (or as of a custom date you provide), plus:

Notes