Date Calculator

Calculation

Month and year shifts clamp to the last valid day. Dates are calendar dates, not elapsed hours or business days.

Enter your values to see the result.

About this tool

This date calculator counts the days between two dates and adds or subtracts days, weeks, months or years from a date. People use it for deadlines, notice periods, project schedules, travel and countdowns. The days between two dates is the number of calendar day boundaries crossed from the start date to the end date, which excludes the start date unless you choose to include both dates.

How it works

Choose Days between dates to count the span between two dates, or Add or subtract time to move a date forward or back by days, weeks, months or years. Day differences use calendar dates in UTC, so daylight-saving changes do not add or remove a day. A negative difference means the end date is before the start date. Including both dates adds one to the absolute difference.

When adding months or years, an unavailable day is replaced by the last day of the target month. Enter a negative amount to go back in time. Results also show the weekday of the calculated date, and differences are broken down into weeks and days.

Example

From February 28 to March 1, 2024 there are 2 days, or 3 days counting both dates. January 31, 2024 plus 1 month is February 29, 2024.

For a longer span, March 1, 2026 to December 25, 2026 is 299 days, or 42 weeks and 5 days. A 90-day deadline starting January 15, 2026 falls on April 15, 2026. Adding 1 month to January 31, 2025 gives February 28, 2025, because 2025 is not a leap year.

Assumptions and limits

The calculator works with Gregorian calendar dates only, without times of day or time zones. It counts calendar days, not business days, and does not apply weekends or holidays. Adding months or years clamps to the month's last day, so results may differ from legal or contractual counting rules.

Frequently asked questions

Does the calculator account for leap years?

Yes. It follows Gregorian calendar leap-year rules, including the century rule: 2000 was a leap year, but 1900 was not. A year is a leap year when it is divisible by 4, except century years, which must also be divisible by 400.

Does it exclude weekends and public holidays?

No. This calculator counts calendar days. It does not calculate business days or apply regional holiday calendars. For deadlines defined in working days, count weekends and public holidays separately using the calendar that applies to you.

Should I include the end date when counting days?

It depends on the rule you are following. For a stay or event that occupies both the first and last day, include both dates, which adds one day. For elapsed time, such as how long until a deadline, leave it off.

How many weeks are between two dates?

Divide the day difference by 7. For example, 30 days is 4 weeks and 2 days, or about 4.29 weeks.

How do I find the date 90 days from a given date?

Switch to Add or subtract time, enter the start date, type 90 and choose days. Weeks always count as 7 days, while months and years follow the calendar. That is why 90 days and 3 months from March 1, 2026 give different results: May 30 and June 1, 2026.

Link with your values

Add these parameters to this page’s address to open it with the values filled in, for example to share a calculation or to link to it from an AI assistant. The result is calculated in the browser: the page HTML shows an example for the default values, and the tool sets the data-url-params attribute once the link’s values are applied.

ParameterValueIf omitted
modeCalculationone of: difference, shiftdefault difference
start_dateStart datedate: YYYY-MM-DDrequired
end_dateEnd datedate: YYYY-MM-DD; used with mode = differencerequired
include_end_dateCount both dates (add one day to the absolute difference)true or false; used with mode = differencedefault false
shift_amountAmount (negative to subtract)whole number; allowed -3652058–3652058; used with mode = shiftrequired
shift_unitUnitone of: days, weeks, months, years; used with mode = shiftdefault days

Examples

  • ?start_date=2026-01-01&end_date=2026-12-25
  • ?start_date=2026-03-02&end_date=2026-03-06&include_end_date=true
  • ?start_date=2026-10-09&shift_amount=90
  • ?start_date=2026-01-31&shift_amount=1&shift_unit=months

Write decimals with a point. Encode a space as %20, + as %2B, # as %23 and & as %26.

Result elements: [data-result-block="date"]