How Many Days Until Calculator
Find how many days are left until a future date.
🧮
Enter your values and click Calculate
How It Works
Today's local date is read from the browser and converted to UTC midnight using Date.UTC(). The target date is also validated and converted to UTC midnight. The difference in milliseconds is divided by 86,400,000 and rounded to a whole number of days. If the result is positive, the target is in the future; if negative, it is in the past; if zero, today is the target date. Approximate weeks are shown by dividing the absolute day count by 7. Using UTC for both endpoints eliminates the one-hour DST shift that would otherwise cause off-by-one errors on clock-change days.
Examples
Vacation countdown
Count the days until a summer trip on June 15, 2026.
Result: Shows the number of days remaining from today (approximately 92 days if checked in mid-March 2026).
Birthday countdown
Find how many days until a September birthday.
Result: Shows roughly 171 days until the birthday if checked in mid-March 2026.
Project deadline
Days remaining until an end-of-year project deadline.
Result: Shows approximately 291 days remaining if checked in mid-March 2026.
Frequently Asked Questions
Does this update automatically?
Yes. The result depends on today's date, so it naturally decrements each day without any action on your part. Simply reload the page to see the current count.
What if the date is in the past?
The calculator shows how many days have elapsed since that date, along with a note that the date has already passed. The absolute day count is displayed either way.
Why use UTC instead of local time?
UTC avoids the one-hour daylight saving time shift that could otherwise cause an off-by-one error on the two days per year when clocks change. Using UTC midnight ensures a clean 86,400-second day throughout the year.