How Long Ago Calculator
A past date measured against this device's clock, as a civil span and as total days, hours and minutes.
What the how long ago calculator does
It reads one past date and this device's clock and prints the span between them. The human span is borrow-normalised civil arithmetic — whole years and months first, then the leftover days, borrowing the earlier month's real length when the day-of-month would go negative — and the total line is the elapsed time in days, hours and minutes.
1 January 2020 to 21 November 2026 is 6 years, 10 months and 20 days. Both moments are read as local wall-clock values in the browser's own time zone, and the result says so, because a daylight-saving change inside the interval moves the wall-clock hours even though the civil span does not move.
The page reads a clock, which is why the basis line is part of the answer rather than only of the copy. A moment in the future is refused rather than printed as a negative span, a date that is not a date is refused with the text it read, and a day that the calendar does not have — 30 February, for one — is refused by name. Years are read from 1970 to 2200.
The page is for a past moment. To count towards a future one, the countdown page is the same arithmetic in the other direction.
How to use it
Type the past date into the text box as YYYY-MM-DD, or as YYYY-MM-DD HH:MM if you have a time.
Press Run. The result prints this device's clock reading, the moment you entered, the civil span and the totals.
Worked example
Input with the default date and a pinned reference moment of 21 November 2026:
2020-01-01
Output:
Then: 2020-01-01 00:00 (read in the same local time zone)
Ago: 6 years, 10 months, 20 days
Total: 2516 days / 60384 hours / 3623040 minutes
Why it runs in your browser
The span is computed in this tab against your own clock. The date you enter is never uploaded.
It reads one past date and the clock on this device and prints the span between them: whole years, months and days, with the elapsed days, hours and minutes beside it.
1 January 2020 to 21 November 2026 is 6 years, 10 months and 20 days. Both moments are read as local wall-clock values, and the result states the basis and the time zone it read.
A moment in the future is refused rather than printed as a negative span; the countdown page is the same arithmetic in the other direction.
The civil span and the totals
The human span is borrow-normalised civil arithmetic: whole years and months first, then the leftover days, borrowing the earlier month's real length when the day-of-month would go negative. That is why 31 January to 28 February reads as 28 days rather than a month.
The total line is the elapsed time in days, hours and minutes. It is the same interval seen as one unit, so the two lines can never disagree about which moment came first.
The clock is part of the answer
This page reads a clock, so it prints the reading it used and says the interval is real elapsed time in the browser's own time zone. A daylight-saving change inside the interval moves the wall-clock hours, which is why the basis line is part of the result rather than only of the copy.
A date that is not a date, a day the calendar does not have and a year outside 1970 to 2200 are each refused with the offending text named.
How to use How Long Ago Calculator
Type the past date into the text box as YYYY-MM-DD, or as YYYY-MM-DD HH:MM if you have a time.
Press Run. The result prints this device's clock reading, the moment you entered, the civil span and the totals.
What to Expect
Best for
- Measuring the time since an event
- Checking how many days have passed since a date
- Turning a date into a years-and-months answer
Not ideal for
- A future date, which is refused
- A span you want in a specific time zone other than this device's
- A date before 1970 or after 2200
What this tool keeps
- The date you typed
- The civil span and the elapsed totals
What may need cleanup
- A date written in another format, which has to become YYYY-MM-DD
- A time without a date, which the page cannot place
Common errors
- Entering tomorrow's date and expecting a negative span
- Writing 30 February, which the calendar does not have
Example use cases
- Finding how long since a project started
- Counting the days since a date
- Checking an age in years, months and days
Sample input
2020-01-01, read against 21 November 2026.
Sample output
6 years, 10 months and 20 days, or 2516 days.
Who this is for
- Anyone measuring the time since a date
- A reader checking a span they were given
Frequently asked questions
Which time zone does it use?
This device's local time zone, for both the date you type and the clock reading. The result names that basis, because a span measured across a daylight-saving change has different wall-clock hours in a different zone.
Why is a future date refused?
Because how long ago a future moment was has no answer. Printing a negative span would hide the mistake, so the page names the two moments and points at the countdown page instead.
Why does 31 January to 28 February read as 28 days?
Because the page borrows the earlier month's real length when the day count would go negative. January has 31 days, so the span from 31 January to 28 February is 28 days rather than one month.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.