Date Difference Calculator (days between dates)
Find how many days, weeks and months lie between two dates. Choose whether the start date counts; leap years and month ends are handled correctly.
- Runs in your browser (no upload)
Example: from Feb 28 to Mar 1, 2024 is 2 days without the start date, or 3 days (Feb 28, Feb 29, Mar 1) when both dates are counted.
Result
Period: Wed, Feb 28, 2024 – Fri, Mar 1, 2024
The start date is not counted: days from the next day through the end date.
One month runs from a date to the same date of the next month (or to that month’s last day if it has no such date, so Jan 31 to Feb 29 is one month). When both dates are included, months are counted up to the day after the end date.
How to use
- Enter the start and end dates. The "today" buttons fill in today’s date.
- Choose whether to exclude the start date (end − start) or to count both dates.
- The days, weeks and days, months and days, and years-months-days appear instantly.
FAQ
What is the difference between the two counting options?
Excluding the start date gives end − start, so Feb 28 to Mar 1, 2024 is 2 days. Counting both dates adds one: 3 days. Use the first for elapsed time and the second for things like the number of days of an event.
How are months counted?
A month runs from a date to the same date of the next month, or to that month’s last day if it has no such date (Jan 31 to Feb 29 is one month). The rest is shown in days. When both dates are counted, months are counted up to the day after the end date.
Can the end date be before the start date?
Yes. The dates are swapped automatically and a note is shown.
Notes & limitations
- What you enter is processed only on this page and is not sent to YUCTS servers.
- Public holidays and business days are not considered; every calendar day is counted.
- Dates use the current Gregorian calendar, extended backwards before 1582, so they differ from Julian calendar dates.
- Times of day and time zones are not handled; the calculation works with whole dates.
Related tools
- Percentage Calculator (percent of, percent change, reverse percentage)Work out X% of Y, what percent X is of Y, the percentage change from A to B, a value after a ±X% change and the original value before it — exact decimals, with clear errors for division by zero.
- Tip Calculator (tip percentage, tax, split the bill)Enter the bill and a tip percentage to get the tip, the total and what each person pays, exact to the smallest unit — with tip on the pre-tax amount and optional rounding up of each share.
- Bill Splitter (equal, by shares or by percentage)Split a total between people equally, by shares (2 : 1 : 1) or by percentage, optionally in round units such as 10 or 100, with an explicit, deterministic split of the remainder.
- Unit Converter (length, weight, area, volume, speed)Convert meters, inches, pounds, gallons, km/h and more between length, weight, area, volume and speed units using exact definitions. Type in either box to convert both ways.
- Temperature Converter (Celsius, Fahrenheit, Kelvin)Convert between Celsius (°C), Fahrenheit (°F) and kelvin (K). Type in any box to get the other two units; temperatures below absolute zero are rejected.
- Age Calculator (exact age and next birthday)Calculate exact age in years, months and days from a date of birth, plus days since birth and days until the next birthday. Choose how Feb 29 birthdays count in common years.