https://devtools.solutions/tools/datetime/relative-time-calc.html

Calculate Relative Time

Calculate human-readable relative time from a date (e.g. '3 days ago', 'in 2 hours').

Calculate Relative Time


    

Example input/output

Input: 2024-01-01T00:00:00Z

Output: about 4 months ago (depends on current date)

How it works

This tool subtracts the input date from Date.now() to get the difference in milliseconds, then converts to the most appropriate unit (seconds, minutes, hours, days, weeks, months, years). Processing runs in your browser.

Common use cases

Related tools