Date calculator
Find the number of days between two dates, or add/subtract days from a date.
Mode
Rough sheet
step-by-stepTwo ways to work with dates
The difference mode answers "how many days are there between these two dates?" The add or subtract mode answers "what date is 90 days from now?" Both rely on the real calendar, so month lengths and leap years are handled for you.
Worked examples
- Days between: January 1, 2027 to December 31, 2027 is 364 days, since 2027 is not a leap year. Add one if you want to count both the first and last day.
- Adding days: 90 days after January 15, 2027 is April 15, 2027 (16 days left in January, 28 in February, 31 in March, and 15 in April).
- Subtracting days: 30 days before March 1, 2027 is January 30, 2027.
Counting the start and end day
Different tasks count differently, and mixing them up is the most common cause of off-by-one mistakes. A simple difference counts the number of midnights between two dates, so June 1 to June 2 is one day. If you are counting calendar days that include both the first and the last date, for example the length of a stay or a promotional period, add one. Contracts and legal deadlines often have their own counting rules, such as excluding the day an event occurs, so check the wording.
Leap years
A leap year has 366 days. The rule is: divisible by 4, except for years divisible by 100, unless the year is also divisible by 400. That makes 2024 and 2028 leap years, 2100 a common year, and 2000 a leap year. The extra day, February 29, affects any range that crosses it.
Typical uses
People use date arithmetic for project deadlines, countdowns to events, lease and notice periods, warranty or return windows, pregnancy and treatment schedules, and tracking how long something has lasted. For counting only weekdays or excluding holidays, remember that this calculator counts all calendar days; for business-day counts, subtract weekends and any holidays yourself or compare the result against a calendar. Rules about weekends and public holidays differ between countries and employers.
Frequently asked questions
Yes, switch the direction toggle to subtract days from your chosen starting date instead of adding them.
The difference is the number of full days between the two dates, so June 1 to June 2 counts as one day.