Date Difference
Date & TimeFind the exact calendar and total-day difference between two dates.
- How many days are between two dates?
- Should the end date count?
Convert Unix seconds or milliseconds to dates and convert date/time values back to timestamps.
Change the inputs that matter to your decision. Optional assumptions stay collapsed until you need them.
Converted the timestamp to local time, UTC, and ISO 8601.
The input was interpreted as seconds unless it is large enough to be milliseconds.
Relative: 20674 days ago
Unix timestamps do not contain a time-zone label; the chosen interpretation matters when converting from local date/time.
Practical notes about the inputs, assumptions, and result.
The POSIX epoch is anchored at UTC. A converted local display still depends on the browser or runtime time zone.
Other tools in date & time.
Find the exact calendar and total-day difference between two dates.
Add or subtract years, months, weeks, days, or business days from a date.
Calculate elapsed time or add hours, minutes, and seconds across midnight.