Event Countdown
Days and hours between two Gregorian dates.
About this calculator
This calculator finds the exact number of days -- and, as a derived figure, hours -- between any two Gregorian calendar dates, using a Julian day number conversion so it handles leap years and varying month lengths correctly across any span from a single day to thousands of years. Enter a start date (year, month, day) and a target date in the same format, and the calculator converts each to its Julian day number, subtracts, and reports the absolute difference as Days apart, with Hours simply that figure multiplied by 24. Because the result is an absolute value, the calculator works the same way regardless of which date comes first: if the target date falls before the start date, it flags Target before start? as "Yes" and still reports the full magnitude of the gap rather than a negative number.
This makes it useful for two different jobs -- counting down to a future wedding, deadline, or vacation, and counting up from a past date to see how long ago something happened -- without needing a separate calculator for each direction. Because both dates are entered independently across six separate year/month/day fields, the relationship between any single field and the final day count depends on where the other five fields sit -- raising Start year, for instance, can either raise or lower Days apart depending on which side of the target date it lands on, and even Target day can move Days apart in either direction depending on which month it falls in relative to the start date -- so this calculator's result is best understood by trying your own two dates rather than through a fixed rule of thumb.
Inputs
Results
Days apart
280
How to Use This Calculator
- Enter the start date (year, month, day) -- typically today's date.
- Enter the target event date (year, month, day).
- View the number of days and hours between the two dates.
- If the target is before the start date, the calculator notes it and shows the absolute difference.
How the result changes with Start year
| Start year | Days apart |
|---|---|
| 1,013 | 370,271 |
| 1,520 | 185,093 |
| 3,039 | 369,710 |
| 5,065 | 1,109,692 |
What each input means
- Start year
- Start date year.
- Start month
- 1–12.
- Start day
- Day of month.
- Target year
- Target year.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersStart year = 2026, Start month = 3, Start day = 20, Target year = 2026 = 6 input(s) provided
- Calculate Days apartDays apart = abs(diff)280 = 280
- Calculate HoursHours = days * 246720 = 6720
- Calculate Target before start?No = No
Engine last updated . Checked against 3 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
How does the calculator handle leap years when counting days between dates?
The calculator converts each date to its Julian day number using the standard Gregorian calendar algorithm, which correctly accounts for leap years and each month's actual length, so the day count between, say, February 20 and March 20 is accurate whether or not a leap day falls in between.
What happens if I enter a target date that's before the start date?
The calculator still works -- it flags Target before start? as "Yes" and reports the absolute number of days and hours between the two dates rather than a negative number. That makes it equally useful for counting down to a future event or counting up from a past one.
Can I use this to count how long ago a past event happened?
Yes -- enter the past event as either the start or target date and today's date as the other; the calculator reports the absolute gap either way and notes which date came first, so it works identically whether you're counting down to something upcoming or counting up from something that already happened.
Does Hours give me a more precise result than Days apart?
No -- Hours is simply Days apart multiplied by 24, so it carries exactly the same information at a different scale rather than added precision. It's provided as a convenience for planning purposes (like an hours-until-deadline countdown) rather than as a separate, more granular calculation.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Date Difference Calculator
Calculate the exact number of days, months, and years between two dates. Also shows weeks, hours, and minutes.
Time & DateDate & Time Master Calculator
Calculate age, date differences, countdowns, Unix timestamps, and track milestones all in one place.
Time & DateCountdown Calculator
Count down to any date. See remaining days, hours, minutes, weeks, work days, and sleeps until your target date.
Debt PsychologyDebt Freedom Countdown Calculator
Visual countdown with motivational milestones.
Equestrian SportCourse Walk Timer Calculator
Walk speed and stride counting for show jumping courses.
More in Life Events, Faith & Community.