Calculate the difference between two dates
Enter two dates on separate lines in YYYY-MM-DD format. The calculator shows the total days, complete weeks and remaining days, hours, and milliseconds. It also reports which date comes first and gives an approximate breakdown in years and months.
For example, 2026-11-02 and 2026-11-09 are 7 days apart, or 1 week. Identical dates give a difference of zero. The result measures elapsed time, so it does not count both endpoint dates as full days.
Use the business days calculator when you want to exclude Saturdays and Sundays. This date difference calculator includes weekends.
محاسبه بین دو تاریخ
برای محاسبه فاصله بین دو تاریخ، هر تاریخ را در یک خط جداگانه وارد کنید. از تاریخ میلادی با قالب YYYY-MM-DD و ارقام انگلیسی استفاده کنید. برای مثال، فاصله بین 2026-11-02 و 2026-11-09 برابر با ۷ روز است.
این ابزار تاریخ شمسی را تبدیل نمیکند. نتیجه شامل تعداد روزها، هفتهها و ساعتها است. شنبه و یکشنبه نیز در تعداد کل روزها حساب میشوند.
Common questions
- Does this calculator count both dates?
- It measures the elapsed difference. Two identical dates give zero days, and consecutive dates give one day. It does not add an extra day to include both endpoints.
- Can I enter Persian calendar dates?
- No. Use Gregorian dates in YYYY-MM-DD format with English digits. The calculator does not convert Solar Hijri dates.