Date Calculator

How to use the date calculator

  1. Days between dates: pick the start and end. You get the total days, the same in weeks and days, in years, months and days, and the number of weekdays.
  2. Add or subtract: pick a date, a number and a unit (days, weeks, months or years) to find a deadline, a due date or a date in the past, with its day of the week.

How the counting works

Each date is turned into a whole day number, so subtracting two of them gives the exact number of days with no clock times involved; this is what keeps daylight-saving changes from adding or losing a day. Years, months and days are counted the calendar way: whole months first (from January 31, one month later is the end of February), then the days left over. Adding months or years follows the same end-of-month rule.

What we tested

On October 14, 2026 we ran the page’s own functions on 5,000 random date pairs and additions between 1900 and 2100 and compared them with Python’s datetime, dateutil (calendar months and month-end clamping) and NumPy’s business-day count (Monday to Friday). The first run caught a real bug: weekday counts were wrong for dates before 1970, because of how negative numbers behave in JavaScript’s remainder; fixed before release.

CheckMatches
days5,000 of 5,000
years/months/days5,000 of 5,000
weekdays (Mon-Fri)5,000 of 5,000
weekday5,000 of 5,000
adding days/weeks/months/years5,000 of 5,000

Invalid dates such as February 29, 2023 or April 31 are rejected, and leap days are accepted. In Chromium: with the browser on New York time, March 10 to 11, 2024 (a 23-hour day) counted 1 day and November 3 to 4 (25 hours) 1 day; January 31 to March 1, 2024 gave 30 days = 1 month, 1 day, 22 weekdays; January 31, 2024 plus one month gave Thursday, February 29, 2024; and the page fitted a 390 px phone screen with no errors

Frequently Asked Questions

How do I count the days between two dates?+
Pick a start and an end date. By default the start day is counted and the end day is not, the usual way (from Monday to Tuesday is 1 day). Tick Include the end date to count both, for example for the number of days of an event or a rental.
What is January 31 plus one month?+
February 28, or February 29 in a leap year. When the target month is shorter, the date moves to its last day; this is the common rule used by calendar software and Python's dateutil.
How are weekdays counted?+
Monday to Friday between the two dates, with the same start-in, end-out rule as the day count. Public holidays are not subtracted; for working days with holidays, use the Business Day Adder.
Can daylight saving time make the count wrong?+
Not here. The calculator works with whole calendar days rather than clock times, so a 23-hour or 25-hour day around a clock change still counts as one day. We tested this with the browser set to New York time across the March 2024 change.
How far back and forward does it work?+
Any date the browser's date picker accepts; our tests covered 1900 to 2100, including leap days such as February 29, 2000 and 2024.
Is anything sent anywhere?+
No. Everything is worked out in your browser.

Built by Derek Giordano · Part of Ultimate Design Tools

Privacy Policy · Terms of Service