Unix Timestamp Converter
Convert Unix seconds or milliseconds to UTC and local dates, and back.
developer / popularChoose two dates to compare their calendar distance. See the absolute difference in days, weeks plus days, and calendar years, months, and days. Weekday counting skips Saturdays and Sundays.
Calendar dates, leap years, and reversed ranges handled locally.
Run with Ctrl / ⌘ + Enter · Search with Ctrl / ⌘ + K
2024-02-28 → 2024-03-01RESULT
2 calendar days
Friday 2024-03-01 → Monday 2024-03-04RESULT
3 calendar days · 1 weekday
The count measures elapsed calendar days. The same date gives zero days; two consecutive dates give one day.
The calculation orders the dates, excludes the earlier date, and includes the later date when it is Monday through Friday. Public holidays are not excluded.
The tool reports an absolute difference and calculates the interval from the earlier date to the later date.
No. Calendar months vary in length. The month and year breakdown follows calendar boundaries rather than dividing the total by 30 or 365.
The tool compares calendar dates rather than local clock hours. This avoids treating a daylight-saving transition as an extra or missing calendar day.