Date Calculator
- Runs in your browser: what you type is not uploaded
- Free, no sign-up
- Formula explained below
About Date Calculator
The Date Calculator works two ways. In Difference mode it tells you exactly how much time separates two calendar dates — as a total number of days and as a tidy years / months / days breakdown. In Add/Subtract mode it starts from a date and shifts it forward or backward by a chosen number of days, weeks, months or years to give you the resulting date.
It is handy for counting down to deadlines, working out contract or notice-period end dates, checking how long ago something happened, or finding a date that is, say, exactly 90 days from today.
Formula
- Start — the earlier date (taken at local midnight)
- End — the later date (taken at local midnight)
- 86,400,000 ms — the number of milliseconds in one day
The years / months / days breakdown is counted by calendar, so unequal month lengths (28–31 days) and leap years are handled automatically. In Add/Subtract mode the date is shifted by whole units; when adding months or years the day is clamped to the last valid day of the target month (e.g. Jan 31 + 1 month → Feb 28).
How to use the Date Calculator
- Choose Difference to compare two dates, or Add/Subtract to shift a date.
- In Difference mode, pick a start date and an end date.
- In Add/Subtract mode, pick a start date, choose Add or Subtract, then enter the amount and its unit (days, weeks, months or years).
- Read the result instantly — total days and the full breakdown, or the resulting date with its weekday.
Good to know
- The day count is the number of nights between the dates: from the 1st to the 8th is 7 days, not 8.
- If you enter the end date before the start date, the gap is still shown as a positive span.
- Months and years are inherently variable in length, so 30 days is not always exactly '1 month' — the breakdown reflects real calendar months.
- All calculations run in your browser using your device's local time; no dates are sent anywhere.
Frequently asked questions about the Date Calculator
Does the difference include both the start and end day?
It counts the days between the two dates — effectively the number of nights. To count both endpoints inclusively (common for booking nights or event days), add 1 to the total days shown.
What happens when I add a month to the 31st?
The result is clamped to the last day of the target month. Adding one month to January 31 gives February 28 (or 29 in a leap year), which matches how most date calculators and calendar apps behave.
Are leap years taken into account?
Yes. February 29 and the extra day in leap years are handled automatically in both the day count and the years/months/days breakdown.
Can I calculate business days only?
This tool counts calendar days, including weekends and holidays. For working-day counts you would need to subtract weekends and any public holidays separately.