Date Calculator
Count the days, weeks, months and years between two dates (with times of day if you need them), or add and subtract years, months, weeks and days from a date.
How to Use
- Choose Between dates to measure a gap, or Add / subtract to move a date forward or back.
- Enter the dates. Tick Include times to measure to the minute, for shifts, flights or deadlines.
- For a gap, read the total days, the years-months-days breakdown, the weeks and the weekdays. Tick Count the end day if both ends should count, as with hotel nights versus rental days.
- For add or subtract, enter any mix of years, months, weeks and days (and hours and minutes with times on). The result shows its weekday and ISO week.
- Show Work below the tool lists every step for your own dates.
Worked Example
From the Moon landing (Sunday 20 July 1969) to 1 January 2000. Astronomers number every day in sequence, the Julian Day Number: 20 July 1969 is day 2,440,423 and 1 January 2000 is day 2,451,545. The difference is 11,122 days.
Counting forward for the breakdown: 30 whole years reach 20 July 1999, 5 more months reach 20 December 1999, and 12 days are left, so 30 years, 5 months, 12 days. In weeks that is 11,122 ÷ 7 = 1,588 weeks and 6 days. The 1,588 full weeks hold 1,588 × 5 = 7,940 weekdays, and the 6 days left over (Sunday to Friday) add 5, so 7,945 weekdays.
The common mistake: counting the end day, or not. 1 April to 5 April is 5 − 1 = 4 days apart, but a car rented from the 1st to the 5th is charged for 5 days because both ends count. The same choice turns 2024 (1 January to 31 December) into 365 days or 366. Pick the convention your contract or rule uses; the Count the end day box switches between them.
Month ends: 31 January 2026 + 1 month is 28 February 2026, because February has no 31st. Some software instead carries the 3 extra days into March and gives 3 March, which is why two programs can disagree about the same contract date.
Show Work
Formulas
Why Date Arithmetic Is Awkward
The calendar was never designed for counting. Months run from 28 to 31 days, a pattern inherited from Roman calendar reforms rather than from the Moon, and a year is 365.2422 days long, which the Gregorian calendar approximates as 365.2425 by dropping three leap days every 400 years. Pope Gregory XIII introduced it in October 1582, skipping 10 days to put the equinox back in March. Britain and its colonies changed in September 1752 and skipped 11; Russia changed in 1918 and skipped 13, which is why the October Revolution is remembered in November.
Astronomers sidestepped the problem in the 19th century with the Julian Day Number, a single count of days from 1 January 4713 BC, based on a cycle proposed by Joseph Scaliger in 1583. Subtracting two day numbers gives the exact gap regardless of months or leap years, and computers do much the same today with days or seconds since 1 January 1970. This calculator turns each date into a day number for the totals and only goes back to months and years for the breakdown.
About This Calculator
This calculator measures the time between two dates, with times of day if you want them, as total days, years-months-days, weeks and weekdays, and it adds or subtracts years, months, weeks, days, hours and minutes. It works with plain calendar dates, so your time zone and daylight saving never move a date by a day, a common bug in date tools; when times are included it also tells you if a clock change falls inside the range.
Dates from year 1 to 9999 work, using the Gregorian calendar throughout. Everything runs in your browser and nothing is sent anywhere.
Related calculators: Work Day Calculator, Age Calculator, and Day of Week Calculator.
Frequently Asked Questions
Does the count include the start and end dates?
By default it counts the days that pass: 1 April to 5 April is 4 days, the same as end minus start. Tick Count the end day to include both ends, which gives 5. Rentals, leave and event days usually count both ends; nights, interest and elapsed time count the gap.
What is 31 January plus one month?
This calculator gives 28 February (29 in a leap year): when the target month is too short, the date moves to its last day. Spreadsheets do the same with EDATE. Some programming libraries roll over instead and give 3 March, because they add the missing days to the next month. Show Work says when a date was moved to the end of a month.
How is the years, months and days breakdown worked out?
By counting forward from the start date: as many whole years as fit before the end date, then as many whole months, then the days left. 20 July 1969 to 1 January 2000 is 30 years to 20 July 1999, 5 months to 20 December 1999, then 12 days. Counting backwards from the end can give a different split, because months have different lengths.
Why is the time between two times sometimes an hour off?
Because of daylight saving. The calculator measures clock time: 22:00 to 06:30 the next morning is 8 hours 30 minutes on the clock. If the clocks change overnight, the time that really passed is an hour less (spring) or more (autumn). When your device’s time zone has a change inside your range, the tool tells you the real elapsed time as well.
What are weekdays here, and what about holidays?
Weekdays are Monday to Friday among the days that pass. Public holidays differ by country and state, so they are not removed here. The Work Day Calculator handles holidays and custom work weeks.
How do I use the Date Calculator?
Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.
Do I need to install or sign up for anything?
Not at all — it runs in the browser with nothing to install and no account. After it loads once, it even works without an internet connection.
Is my information private?
Yes. Everything happens in your browser. Nothing you type is sent to a server or saved anywhere.
Common Use Cases
Deadlines
90 days from 3 October 2026 is Friday 1 January 2027, a public holiday in most countries, so move it a working day earlier or later.
Contracts and leases
A 24-month lease from 31 January 2026 ends on 31 January 2028; the monthly dates fall on the 28th or 29th in February.
Countdowns
From 3 October to 25 December 2026 is 83 days, or 11 weeks and 6 days.
Shifts and journeys
With times on, 22:00 to 06:30 next day is 8 h 30 m on the clock. On the night US clocks spring forward (8 March 2026), 7 h 30 m really pass.
History
From the Moon landing on 20 July 1969 to 1 January 2000 is 11,122 days: 30 years, 5 months and 12 days.
Last updated: