Date Difference Calculator
Find the exact difference between two dates in years, months, days, hours, minutes and seconds.
How to use
Calculate a duration
Pick a start and end date and time. The calculator shows the calendar difference plus total days and total hours.
- Choose the start date and time.
- Choose the end date and time.
- Read the breakdown or copy the result.
Order does not matter
If the end is earlier than the start, the tool swaps the dates so the duration is always positive.
Frequently asked questions
How are months counted?
Months are counted on the calendar, then remaining days, hours, minutes and seconds are added. This avoids rounding errors from average month lengths.
Does it account for daylight saving time?
It uses the local time zone of your browser, so daylight saving changes are reflected in the hour totals.
Related tools
Timestamp Converter
Convert between Unix timestamps, ISO 8601 and human readable local dates.
Time Zone Converter
Convert a date and time between world time zones using the browser's built-in time zone database.
Cron Expression Builder
Build cron schedules with presets, a plain-language description and the next five run times.
UUID / GUID Generator
Generate random version 4 UUIDs and copy them one by one or in bulk.
Hash Generator
Compute MD5, SHA-1, SHA-256 and SHA-512 digests of any text.
Regex Tester
Test regular expressions against sample text and inspect every match and capture group.