Calendar days, not clock time
This page answers four questions: what date is a number of days after a start date, what date was that many days before it, how many calendar days separate two dates, and how many of those days are weekdays.
The count is an integer number of civil dates. It does not use the length of a day in seconds, so a daylight-saving change does not add or remove a calendar day. March 10, 2024 plus one day is March 11, 2024, whether or not a clock skipped an hour.
Leap years
A year divisible by 4 is a leap year, except a century year, which is a leap year only when it is divisible by 400. The U.S. Naval Observatory states that rule for the Gregorian calendar. February 28, 2024 plus one day is February 29, 2024. Plus two days is March 1, 2024. February 28, 1900 plus one day is March 1, 1900, because 1900 is not a leap year. February 28, 2000 plus one day is February 29, 2000.
Years run from 0001 through 9999. A calculation that would land before January 1 of year 1, or after December 31 of year 9999, is rejected. The page does not wrap to another year and it does not clamp to the boundary.
Weekdays
The weekday count uses the interval after the earlier date through the later date. Friday, January 5, 2024 through Monday, January 8, 2024 is 3 calendar days and 1 weekday: Monday is inside the interval, and Saturday and Sunday are not. Reversing the two dates makes both counts negative. The same date twice is zero.
Holidays are not excluded. A Monday holiday still counts as a weekday here.
“Use today’s date” fills the starting year, month, and day from this browser’s local calendar only after you click it. It does not run when the page loads.
Not an age
The age calculator reports completed years, months, and days, and it moves a February 29 birthday in a non-leap year. This page does not do that. It counts whole calendar days only. A duration in hours belongs on the time calculator.
Frequently asked questions
Does zero days change the date?
No. Adding or subtracting 0 days returns the starting date.
Are holidays skipped?
No. Only Saturday and Sunday are left out of the weekday count.
Are these dates sent to analytics?
No. Analytics may record that this calculator ran. The dates and the result
stay in this browser.
Sources & review
- Leap years — United States Naval Observatory
Last reviewed: . The formula is reproduced above so you can check the math independently.
A civil-date count only. Not a legal deadline, a business-day convention, or an age in years and months.