What the page counts
Enter two calendar dates and the page gives the number of days between them. The defaults are 2026-01-01 as the start and 2026-12-31 as the end, and the result is 364 days. That figure surprises some people, who expect 365, because 2026 has 365 days and the page counts the steps from one date to the other. From January 1 to January 2 is 1 day. From January 1 to December 31 is 364 steps, since December 31 is the 365th day of the year. The page is useful for deadlines, project durations, notice periods, warranty and subscription lengths, and any question phrased as how many days from this date to that one.
Exclusive and inclusive counting
The subtraction end minus start does not count the start day. If you want both the first and last day to count, add 1. A rental from March 10 to March 12 is 2 days by this page, which matches 2 nights in hotel terms, and 3 calendar days if both end days count, which is how some event bookings and contracts count. Neither is wrong, but the contract or rule decides which applies. In law the method for computing time periods is often written out, and many procedural rules say to exclude the day of the triggering event and include the last day, which gives the same number as this page. When it matters, read the rule for your case, and add 1 only if both end days count.
The leap year example
The page example is February 28 to March 1, 2024, which gives 2 days because 2024 is a leap year and February has 29 days. The steps are February 28 to February 29, then February 29 to March 1. In 2025, the same interval takes 1 day, because February has 28 days. Leap years occur every four years, except for century years not divisible by 400. So 2000 was a leap year, 1900 was not, and 2100 will not be. From 2024-01-01 to 2025-01-01 the count is 366, and from 2025-01-01 to 2026-01-01 it is 365. Over the 26 years from 2000-01-01 to 2026-01-01 there are 7 leap years, 2000, 2004, 2008, 2012, 2016, 2020 and 2024, so the count is 26 times 365 plus 7, which is 9,497 days.
Another worked example
Take 2025-03-10 as the start and 2025-06-18 as the end. From March 10 to March 31 is 21 days. April has 30 days, May has 31, and then 18 days into June. The total is 21 plus 30 plus 31 plus 18, which is 100 days. You can also count whole months and adjust: March 10 to June 10 is 92 days, because March contributes 21, April 30, May 31 and June 10, and then 8 more days get to June 18, for 100. A month-based approach shows how months differ in length, and why saying three months from a date does not give a fixed number of days. For a project plan, converting to days gives a firm count that can be divided into weeks, 100 days being 14 weeks and 2 days.
Months are not a fixed length
A month has 28, 29, 30 or 31 days, so the number of days in an interval of a given number of months varies. From January 1 to February 1, 2026 is 31 days. From February 1 to March 1, 2026 is 28. The shortest case is a common year February with 28 days, and the longest months have 31. A 30-day billing cycle, a 90-day warranty and a 3-month lease are three different things, even though the lengths are similar. Use the page when a contract is written in days. If it is written in months, the rule for the end date, such as the same day of the month, determines the date, and then you can use the page to count the days.
Weeks and weekdays
Dividing the day count by 7 gives whole weeks and a remainder. 100 days is 14 weeks and 2 days. Because 7 does not divide a year evenly, a date falls on a different weekday each year, moving forward one weekday in a common year and two in a leap year. The page gives total days, not business days. A count that excludes weekends and holidays needs a business-day calculator and a holiday list, because holidays differ by country and by year. As a rough check, a period of 14 calendar days contains 10 weekdays, and 28 days contains 20, but the exact count depends on the starting weekday if the period is not a multiple of 7.
Typing dates so they parse
Enter dates as YYYY-MM-DD, the form shown in the fields, as in 2026-01-01. Day-first and month-first notations collide for the first twelve days of every month, since 03/04/2026 is March 4 in the United States and April 3 in much of the world, so convert dates copied from a spreadsheet or a form before typing them. The page counts calendar days only, so a timestamp such as 2026-01-01 23:30 should be reduced to its date. Dates must also exist in the calendar, so 2025-02-29 and 2026-04-31 are not valid. The page uses the Gregorian calendar for all dates, extending its rules backward before it was adopted, which differs from the historical calendar in use at the time. For dates after the 20th century, this makes no difference. For events before the 18th century, a historian would check which calendar a country used.
Practical uses
Common uses include counting days to a deadline, checking how long a notice period runs, measuring the length of a trip, finding the number of days since an event and planning a countdown. A tenancy notice may require 60 days before the end date, in which case you can enter the end date as the end and a candidate start as the start, and adjust until the count reaches 60. A prescription or warranty with a fixed number of days can be checked in a similar way. If the clock matters, such as for a contract deadline at a specific hour, use the date with a time and zone, since this page works with dates only. The page is a calendar tool, and it does not know which days a deadline excludes.
Reading the result
The result is a whole number of days, positive when the end date follows the start date. If you reverse the dates, the subtraction gives the opposite sign, so enter the earlier date first to get a positive number. A zero means both dates are the same day. To express the result in other units, divide by 7 for weeks, or compare with the months by working through the calendar, since months have no fixed length. For years, divide by 365.2425, the average length of a Gregorian year, to get an approximate figure. For 9,497 days, that gives about 26.0 years. Use caution with such conversions, because the exact calendar count is better for anything that has to match a rule.
What a day count leaves out
The page does a single date subtraction. It does not skip weekends or holidays, apply the rules in any contract or law for counting time periods, handle time zones or hours, or convert between calendars such as the Hijri, Hebrew or Chinese calendars. Legal and financial deadlines can have rules about which day counts and what happens when a due date falls on a weekend, so confirm those with the document or an adviser. Where a rule is silent or ambiguous, the day count is still a firm number to bring to that conversation.
Notice periods, warranties and deadlines
Many agreements state a period in days. A 30-day return window, a 60-day notice or a 90-day warranty all begin from a trigger date, and the end date depends on whether the first day counts. Suppose a notice is given on 2026-03-01 and must run 60 days. March 1 to April 1 is 31 days, and April 1 to April 30 is 29 more, so the 60th day after the notice date is April 30. Entering 2026-03-01 as the start and 2026-04-30 as the end confirms a result of 60. If the rule counts the day of notice as day one, the period ends a day earlier, on April 29. Use the page to check your own dates this way.
Days since and days until
The page works for both directions in time. To find how long ago an event happened, enter the event date as the start and today as the end. For a future event, enter today as the start and the event date as the end. People use this for streak counters, anniversaries, pregnancy and project timelines, and tracking how long a task has been open. For example, from 2025-01-01 to 2025-12-25 is 358 days, which is how many days into the year Christmas arrives after New Year. A counter that updates daily gives a motivating figure for goals. Keep a note of the convention you use, exclusive or inclusive, so numbers stay comparable between checks.
Splitting a span into years, months and days
A day count is exact but not always the most readable form. People often prefer years, months and days, such as 2 years, 3 months and 5 days. That form depends on conventions, since months have different lengths, so two people can reach different answers for the same interval. A common method is to count whole years first, then whole months, then the remaining days. From 2020-01-31 to 2020-03-01, the number of days is 30, because 2020 is a leap year, but the month-and-day answer could be 1 month and 1 day or 29 days depending on the rule used for the end of a short month. When a document requires such a form, read how it defines the method. The day count from this page is the unambiguous base for any further conversion.