Date calculator

Calculate date differences and weekdays, add or subtract days, weeks, months and years, or convert between weeks, months and days.

  • Runs locally
  • Free

Use the tool

Your files are processed in your browser and are not uploaded to a server.

About this tool

A date calculator: find the days, weeks, months and years between two dates, or add and subtract days, weeks, months and years from a date. You can also count Monday–Friday business days only.

Typical uses

  • Count the days until an exam or deadline
  • Find the date 90 days after a contract starts
  • Count business days between two dates

How to use

  1. Choose date difference or addition/subtraction, then enter dates and an amount.

  2. Optionally count Monday–Friday only or include both endpoints, then calculate and copy.

Example

2024-01-31 plus one month gives 2024-02-29. Select both endpoints to count the start and end date inclusively.

Good to know

Years 0001–9999. Differences include the earlier date and exclude the later by default; B before A gives a negative result. Month/year arithmetic clamps missing days to the end of the month. Weekdays exclude weekends only, without holidays or regional adjustments.

Calculates calendar dates rather than exact elapsed seconds in a timezone. Weekday mode excludes weekends only; check applicable rules separately for statutory deadlines.

How the day count is defined

In Date difference mode the calculator counts the days from the earlier date up to, but not including, the later date. That is the usual meaning of “how many days from A to B”: nights in a hotel, days of interest, the gap between two events. Tick Include both endpoints when the first and the last day should both count, such as a Monday-to-Friday course or a run of leave days. If Date B is before Date A the result is negative; the ⇄ button swaps the two dates.

DatesOptionsResultTypical use
2026-03-02 (Monday) → 2026-03-06 (Friday)Default4 daysElapsed days, nights of a stay
2026-03-02 (Monday) → 2026-03-06 (Friday)Include both endpoints5 daysDays of an event or leave
2026-03-02 (Monday) → 2026-03-09 (Monday)Monday–Friday only5 weekdays (calendar interval 7 days)Working time, service deadlines
2026-03-02 (Monday) → 2026-03-09 (Monday)Monday–Friday only + Include both endpoints6 weekdaysWhen both ends are working days
2026-03-06 (Friday) → 2026-03-02 (Monday)Default-4 daysB earlier than A
Same day, 2026-11-21 (Saturday)Default / Include both endpoints / plus Monday–Friday only0 / 1 / 0A weekend day is 0 in weekday mode
Leap years and the supported range

A year is a leap year if it is divisible by 4, except century years, which must be divisible by 400 (1900 was not a leap year, 2000 was). So 2026-01-01 to 2027-01-01 is 365 days and 2028-01-01 to 2029-01-01 is 366. Dates from year 0001 to 9999 are accepted, and dates before 1582 are calculated with Gregorian rules too, so convert Julian-calendar dates from historical sources first. The calculation uses whole calendar days, so daylight-saving changes and time zones do not affect it.

Adding months and years: the month-end rule

In Add / subtract mode, months and years are calendar units, not a fixed number of days. The calculator moves the month or year first and keeps the day of the month; if the target month is shorter, it uses that month’s last day. The adjustment is applied once to the original date, so January 31 plus 2 months is March 31, while two separate steps of 1 month end on March 28.

StartAddResult
2026-01-31+1 month2026-02-28
2028-01-31+1 month (leap year)2028-02-29
2026-01-31+2 months2026-03-31
2026-01-31+1 month, then +1 month2026-03-28
2026-03-31−1 month2026-02-28
2026-05-31+1 month2026-06-30
2026-08-31+6 months2027-02-28
2028-02-29+1 year2029-02-28
2028-02-29+4 years2032-02-29

“90 days” and “3 months” are different periods: from 2026-07-01, 90 days later is 2026-09-29 but 3 months later is 2026-10-01. Use the unit your contract, warranty or notice period is written in. The Monday–Friday only option is hidden when adding months or years, because those units are calendar-based.

Monday–Friday only: what is skipped and what is not

  • For a difference, only Mondays to Fridays inside the interval are counted, and the result adds a “Calendar interval” line so you can compare with the full span.
  • When adding weekdays the start date itself is not counted and Saturdays and Sundays are skipped: 2026-11-20 (Friday) plus 1 weekday is 2026-11-23 (Monday); starting from 2026-11-21 (Saturday) also gives 2026-11-23; 2026-11-19 (Thursday) plus 10 weekdays is 2026-12-03 (Thursday).
  • Subtracting works the same way: 2026-11-23 (Monday) minus 1 weekday is 2026-11-20 (Friday). In this mode a week means 5 weekdays, so a Friday plus 1 week is the next Friday (2026-11-27). Adding 0 keeps the original date, even on a weekend.
  • Public holidays are not known to the tool: 2026-12-21 (Monday) to 2027-01-04 (Monday) counts 10 weekdays out of 14 calendar days, including Christmas Day (Friday) and New Year’s Day (Friday). Where those are holidays for you, subtract them yourself — here that leaves 8.

Converting weeks, months and days

Convert weeks / months / days uses fixed factors. A week is exactly 7 days. A year is the average Gregorian year of 365.2425 days (a 400-year cycle has 97 leap years and 146,097 days), and a month is a twelfth of that, about 30.44 days.

InputDaysWeeksMonths (approx.)Years (approx.)
12 weeks84122.760.23
40 weeks280409.20.77
100 days10014.293.290.27
6 months182.6226.0960.5
18 months547.8678.27181.5

Averages answer “roughly how many months is 12 weeks?”, but they are not calendar dates. Six months converts to 182.62 days, yet 2026-01-01 to 2026-07-01 is 181 days and 2026-07-01 to 2027-01-01 is 184. For an exact date, use Add / subtract or Date difference.

Frequently asked questions

Are start and end dates included?

By default the earlier date is included and the later excluded; you can choose to include both.

Are public holidays excluded?

No. Only Saturdays and Sundays are excluded; holidays and regional adjustments are not.

What happens when adding a month to the 31st?

If the target month lacks that day, the last day of the month is used — e.g. January 31 plus one month is February 28 or 29.