Calculates the duration between two dates.
Date Difference calculates the duration between two dates and shows the result in milliseconds, seconds, minutes, hours, days, and weeks. Enter a start date and an end date and it computes the absolute difference, so the order of the dates does not change the result. It is handy whenever you need to know how much time elapsed between two points or convert that gap into different units.
No. Date Difference runs entirely in your browser using the native JavaScript Date object. The dates you enter are never uploaded or sent anywhere.
Any string the browser's Date constructor can parse, such as ISO 8601 dates like 2024-12-31 or full date-time values. If a date cannot be parsed you will get an error asking you to fix the start or end date.
No. The tool reports the absolute difference between the start and end dates, so swapping them produces the same positive result.
All units except milliseconds are derived from the raw millisecond gap and rounded to two decimal places, so partial days or weeks appear as fractions rather than being truncated to whole numbers.
The tool only outputs milliseconds, seconds, minutes, hours, days, and weeks. It does not compute calendar months or years, since their length varies.