← Back to daily calculators

Date Calculator

Days between two dates, or add and subtract from a date

This tool does two jobs. In Difference mode it counts how many days sit between two dates, including a weeks and working-days breakdown. In Add / Subtract mode you start from one date and move forward or backward by a number of days, weeks, months or years to get the resulting date.

Mode

Result

0days

In years, months, days0y 0m 0d
In weeks0 weeks 0 days
Working days0

How this calculator works

The Date Calculator has two modes, switchable by a toggle at the top of the inputs panel.

Difference between two dates — Enter a start and end date, and the calculator returns the exact gap in days. It also breaks this down into whole years, months and days, which is useful when you need to state the gap in a more human-readable form (e.g. "2 years, 3 months, 11 days" rather than "848 days").

Add or subtract from a date — Enter a start date, choose whether to add or subtract, and specify a number of years, months and/or days. The calculator returns the resulting date and the day of the week it falls on. Month-end edge cases (e.g. adding 1 month to 31 January) are handled by clamping to the last valid day of the target month.

The formula

Difference: days = (End − Start) ÷ 86,400,000 ms, rounded to nearest integer

Shift: result = Start + (years, months, days) using calendar arithmetic

For the difference mode, the day count is the inclusive number of elapsed days — so a start and end date that are the same produce zero days. For the shift mode, adding 1 year adds exactly one calendar year (respecting February 29 on leap years), and adding 1 month adds one calendar month (not 30 days).

Worked examples

Difference mode

  • Start: 1 January 2024
  • End: 15 March 2024
  • Difference: 74 days (2 months and 14 days — 2024 is a leap year so Feb has 29 days)

Add/subtract mode

  • Start: 31 January 2025, add 1 month
  • 28 February does not have a 31st — result is clamped to 28 February 2025 (Saturday)

Practical tips

  • This calculator counts calendar days, not working days. If you need a count of working days (excluding weekends), the raw difference will overcount. A rough rule of thumb is to multiply calendar days by 5/7, but for precise working-day counts a dedicated business-day calculator is more reliable.
  • When adding months, set the year and day fields to zero. The three add/subtract fields are independent — you can add 2 years and 3 months simultaneously, or just 45 days. Setting unused fields to zero ensures the calculator does not accidentally shift the date in multiple dimensions.
  • Use this alongside the Age Calculator for document work. If you know someone's age must be "at least 18 on 1 April 2025", use the Age Calculator to confirm their exact age on that date, or work backwards using subtract mode to find the latest allowable date of birth.