Days Until a Date
Set a start date and a target date, and this calculator shows the exact whole-day gap between them along with a clean weeks-and-days breakdown. The start field defaults to today, so a quick countdown to a deadline, holiday or event takes two clicks. Targets in the past return a negative number so you can measure how long ago something happened.
How to count days until a date
- Click the Start date field, which is preset to today, and change it if you want to count from a different day.
- Click the Target date field and pick the date you are counting toward.
- Read the large total, such as 198 days, in the result box.
- Check the smaller line below it for the weeks-and-days breakdown, for example 28 weeks, 2 days from the start.
- Use the Copy button to copy the day total to your clipboard.
Examples
Countdown to a holiday
Start 2026-06-10, Target 2026-12-25
198 days (28 weeks, 2 days from the start)
A date that already passed
Start 2026-06-10, Target 2026-06-01
-9 days (1 week, 2 days ago)
Exactly one week out
Start 2026-01-01, Target 2026-01-08
7 days (1 week from the start)
Frequently asked questions
How are the days counted?
Both dates are converted to midnight UTC and the difference is divided into whole days. Because the math is done in UTC, a daylight saving shift in your local time zone never adds or removes a day from the result.
What does a negative number mean?
A negative total means the target date falls before the start date. The magnitude is how many days ago the target was, so -9 days means the target was nine days in the past relative to the start.
Does the count include the start day or the target day?
Neither endpoint is double counted. The tool measures the span between the two dates, so January 1 to January 8 is 7 days rather than 8. If you need an inclusive count that covers both ends, add one.
How is the weeks and days breakdown calculated?
The absolute day total is divided by 7 for whole weeks, and the remainder becomes the leftover days. A gap of 198 days shows as 28 weeks and 2 days, and the sign is carried through so a negative total reads as time in the past.
Why does the breakdown sometimes hide the weeks or the days?
The summary skips a part that is zero. A gap of exactly 14 days shows as 2 weeks with no trailing days, while a 3 day gap shows only days because there are no full weeks to report.
Can I count between two future or two past dates?
Yes. Neither date has to be today. Set both fields to any dates you like, past or future, and the tool returns the signed gap between them.
What date format does it expect?
The inputs are native date pickers that use the YYYY-MM-DD format internally. You choose from a calendar, so there is no ambiguity about whether a number is a month or a day.
Does it handle leap years correctly?
Yes. The calculation uses real calendar arithmetic, so a February 29 in a leap year is counted like any other day and spans that cross a leap day come out right.
Is my data private?
Yes. Every calculation runs in your browser. No dates are sent to a server, logged or stored anywhere.
Learn more
- How days between two dates are counted
Why a day count can look off by one, how UTC avoids daylight saving errors, and the difference between inclusive and exclusive counting.
Related tools
Day of the Week Calculator
Find out what day of the week any date falls on, from past to future. See the weekday name and whether it lands on a weekend. Free and instant.
Add to Date
Add or subtract days, weeks, months and years from any date and get the new date. Handles month-end and leap days correctly. Free and instant.
Add Business Days Calculator
Add or subtract working days from a date, skipping weekends and any holidays you list. See the result date and its day of the week instantly.
Add Days Calculator
Add or subtract calendar days from any date and see the result with its day of the week. Free, instant and works for past or future dates.
Add Time Calculator
Add or subtract hours and minutes from a time of day. See the new clock time and whether it crosses into another day. Free and private.
Age Calculator
Calculate your exact age in years, months and days from your date of birth. See your age in total days, weeks and months too. Free and private.