Date Calculator
Last updated: 27 June 2026
Research and drafting assisted by AI.
- The Gregorian calendar was adopted to fix the Julian calendar, which had drifted 10 days out of sync with the solar year by 1582. Catholic countries skipped 10 days overnight. Britain didn't switch until 1752.
- The concept of the 7-day week has no astronomical basis , unlike the year (Earth's orbit) or month (lunar cycle). It likely derives from the Book of Genesis and was spread by the Roman Empire.
- Unix time , used by computers , counts seconds since 1 January 1970 00:00:00 UTC. On 19 January 2038, 32-bit systems will overflow their Unix timestamp counter, potentially causing failures.
Date Calculator
The date calculator finds the difference between two dates or adds and subtracts days, weeks, months, or years from a given date. It is ideal for project planning, legal deadline tracking, and any situation where you need to know how many days separate two events.
How to Use the Date Calculator
- Choose a calculation mode: "Difference between two dates" or "Add/subtract time from a date."
- Enter your start date and, for the difference mode, your end date.
- For add/subtract mode, enter the number of days, weeks, months, or years to offset.
- Click Calculate.
- Read the result as a total number of days, or broken down into years, months, and days.
The Formula
Date difference: Subtract the earlier date from the later date by counting the total number of days between them. The calculator converts both dates to a numeric day count (often days since a fixed epoch such as 1 January 1970), then subtracts to find the gap.
Date offset: Start from the given date and add or subtract the specified number of days, accounting for the varying lengths of months and leap years. Adding one month to 31 January, for example, gives 28 February (or 29 in a leap year) because February has fewer days.
The results can be expressed as:
- Total days: the raw count of calendar days
- Years, months, and days: broken down for readability
- Weeks and days: useful for scheduling
Real-World Example
A contract signed on 1 February 2026 has a 90-day payment term. When is the payment due?
- Start date: 1 February 2026
- Add 90 days.
- February has 28 days in 2026 (not a leap year), so 28 - 1 = 27 days remaining in February.
- 90 - 27 = 63 days remaining after February.
- March has 31 days: 63 - 31 = 32 days remaining.
- April has 30 days: 32 - 30 = 2 days remaining.
- Payment is due on 2 May 2026.
Using the calculator avoids this manual counting and gets to the answer instantly.
Practical Uses for Date Calculations
Date calculations appear in many everyday contexts. Solicitors track legal deadlines from service dates. Landlords calculate notice periods from tenancy agreements. HR departments work out probationary period end dates. Patients track medication schedules. Project managers count sprints and milestones. Knowing exactly how many days fall between two dates, including whether weekends or bank holidays are involved, prevents missed deadlines.
Reference Table: Day counts between common date ranges
Exact day counts for four date ranges, with the working-day estimate assuming a five-day week. The span from 1 January to 31 December 2026 is 364 days because 2026 is not a leap year.
| Start | End | Calendar days | Weeks | Working days (approx.) |
|---|---|---|---|---|
| 01 Jan 2026 | 31 Dec 2026 | 364 | 52.0 | 260 |
| 10 Sep 2026 | 10 Sep 2027 | 365 | 52.1 | 261 |
| 01 Mar 2026 | 01 Jun 2026 | 92 | 13.1 | 66 |
| 10 Sep 2026 | 01 Oct 2026 | 21 | 3.0 | 15 |
Worked Example on Screen
The capture below shows Date Calculator after the inputs were entered, with the result on screen. Enter the same values to reproduce it.

Captured from solved.tools on 10 September 2026.
Frequently Asked Questions
Does the date calculator include the start and end dates in the count? By convention, the default is to count the number of days between the two dates exclusively (not including the start or end day). Some legal and financial contexts require inclusive counting. Check which convention your use case requires and adjust the result by one day if needed.
How does adding months work when the day does not exist in the target month? When you add one month to a date and the resulting month has fewer days (for example, adding one month to 30 January), the calculator moves to the last day of the target month (28 or 29 February). This is called "end-of-month clamping" and matches standard calendar behaviour.
Can I calculate the date for a future anniversary or deadline? Yes. Enter today's date as the start, then add the relevant number of years, months, or days to find the exact future date. This works for any date, past or future, within the calculator's supported range.
What is the difference between calendar days and business days? Calendar days count every day including weekends and bank holidays. Business days exclude weekends and public holidays. If your deadline is stated in business days, use the workday calculator for an accurate result.
How the Calculator Counts the Days
The calculator converts each date into a single day number and subtracts one from the other. A date is stored as the count of days since a fixed starting point, which removes the awkward parts of the problem: months of different lengths, leap years, and the fact that a year is not a whole number of days. Subtraction of two day numbers gives the exact gap, and adding a day count to a day number gives the offset date.
The convention for writing those dates matters when a date crosses a border. International standard ISO 8601 writes a calendar date in descending order, year, then month, then day, so 03/04/2026 has one meaning only. The W3C date and time note keeps the same order for the web, which is why a date entered as 2026-04-03 is unambiguous everywhere.
Leap Years and Why February Is the Test Case
A leap year carries an extra day, and the rule has three parts rather than one. A year is a leap year if it divides by four, unless it also divides by 100, in which case it is a leap year only if it divides by 400. The arithmetic makes the exceptions visible: 2026 divided by four is 506.5, so 2026 is a common year. 2024 divides by four and not by 100, so it is a leap year. 1900 divides by 100 and not by 400, so it is not. 2000 divides by 400, so it is.
| Year | Divides by 4 | Divides by 100 | Divides by 400 | Leap year |
|---|---|---|---|---|
| 2024 | yes | no | no | yes |
| 2026 | no | no | no | no |
| 2028 | yes | no | no | yes |
| 1900 | yes | yes | no | no |
| 2000 | yes | yes | yes | yes |
The next leap years after 2026 are 2028, 2032, 2036, 2040, 2044 and 2048. The 100 and 400 rules exist because a solar year is slightly shorter than 365.25 days, and dropping the century leap day three times in four centuries keeps the calendar aligned with the seasons.
Inclusive and Exclusive Counting
The same two dates can give two answers, and both are correct. Counting exclusively gives the number of days between the dates, so 1 January to 31 March 2026 is 89 days. Counting inclusively, which is what a deadline stated as "within 90 days of 1 January" usually means, gives 90. The difference is one day, and one day is enough to miss a filing date or a contractual notice period. Read the clause, decide which convention it uses, then adjust the result by one day rather than guessing.
Business Days, Weekends and Public Holidays
Calendar days include every day. Business days exclude weekends and public holidays, which is why a stated 20 business day period can run well past a calendar month. A 20 business day term starting on 1 January 2026 ends on 30 January 2026 once the four weekends inside the span are removed, and later if a public holiday falls in the window. Public holidays also move: a holiday that lands on a weekend is often observed on the following Monday, so the count can shift by a day from one year to the next.
Time Zones, the Date Line and Stored Dates
A date is not the same thing as a moment. Two people on the same conference call can be on different dates, which matters for a deadline expressed in a time zone rather than as a calendar date. Storing a date as a plain calendar date avoids the problem for deadlines, while storing a moment as a timestamp with an offset avoids it for events. The two are different fields on purpose, and mixing them is how a deadline written as 23:59 local drifts into the next day for half the world.
What the Calculator Does Not Model
The tool counts calendar days exactly, including leap years and end-of-month clamping. It does not know your jurisdiction's public holidays, so the working-day estimates in the table above assume a five-day week with no holidays. It also does not adjust an inclusive deadline for you, does not handle fiscal calendars, and does not decide whether a period starts on the day of service or the day after. Where a deadline is contractual or statutory, the wording of the clause governs, and the calculator gives the arithmetic rather than the interpretation.
Related tools
- Age Calculator - the same date subtraction expressed in years, months and days
- Hours Calculator - hours and minutes between two clock times
- Business Days Calculator - count working days between two dates
- Time Zone Converter - turn a deadline into your own local time
- Due Date Calculator - add a stated number of weeks to a start date
References
- National Institute of Standards and Technology, "Time and Frequency Division" (time scales and how dates and times are defined). NIST, Time and Frequency Division. Accessed 2026-09-27.
- World Wide Web Consortium, "Date and Time Formats", W3C NOTE-datetime (the year-month-day order used for dates on the web). https://www.w3.org/TR/NOTE-datetime. Accessed 2026-09-27.
- Bureau International des Poids et Mesures, "Measurement units" (the SI definitions behind time measurement). https://www.bipm.org/en/measurement-units/. Accessed 2026-09-27.