日期差值计算器
以年、月、周、天、小时、分钟和秒计算两个日期之间的精确差值。
选择两个日期即可查看差值。
使用方法
以年、月、周、天、小时、分钟和秒计算两个日期之间的精确差值。
- 1Enter your start date in the first input field. You can type directly in YYYY-MM-DD format or use the date picker.
- 2Enter your end date in the second input field. The end date defaults to today so you can quickly calculate how long ago something happened.
- 3The difference is calculated instantly — the top banner shows a human-readable summary like '2 years, 3 months, 15 days'.
- 4The grid below breaks down the difference into years, months, weeks, and remaining days for a complete picture.
- 5Scroll to the totals section to see total days, total weeks, total hours, and total minutes — useful for contracts, payroll, or project tracking.
- 6If you need to reverse the dates, click the 'Swap Dates' button instead of re-entering them.
主要功能
- Multi-unit breakdown — years, months, weeks, and days shown simultaneously for a complete picture
- Total counts — flat totals for days, weeks, hours, and minutes ideal for contracts and scheduling
- Swap dates — one-click reversal without re-entering anything
- Leap year and DST aware — handles edge cases like February 29 and daylight saving transitions
- 100% browser-based — no server, no uploads, works offline after page load