Date and Time Calculator
CU-35Add or subtract a duration from a date, or find the time between two dates. Write dates as 2026-11-21 with an optional 24-hour time.
Runs in your browser. Nothing is uploaded.
One calculation per line (2026-11-21 + 3 days, or 2026-01-01 to 2026-12-25)
Result
How to use it
- Add or subtract: write a date, a + or - with spaces around it, and a duration such as 3 days 2 hours.
- Time between dates: write two dates with the word to between them.
- Put one calculation on each line.
- Press the action you want and copy the result.
How months and years are added
Years and months move the calendar first, then weeks, days, hours, minutes and seconds are added as exact lengths of time. If the target month is shorter than the day of the month, the date moves back to the last day of that month. So 31 January plus 1 month is 29 February in a leap year, and 29 February plus 1 year is 28 February. Each result also shows the weekday.
What the calculation leaves out
Times are plain clock values with no time zone and no daylight saving change, so a day is always 24 hours. Holidays, weekends and business days are not considered, and the Gregorian calendar is applied to every year from 0001 to 9999. The time between dates gives years, months, days, hours, minutes and seconds, then the total days, weeks, hours, minutes and seconds.
Error messages and what to do
| Message | What it means | Fix |
|---|---|---|
Line 1: "2026-13-01" has month 13. Months run from 1 to 12. | The month is outside 1 to 12. | Fix the month. Dates are written year-month-day. |
Line 1: The unit "m" is ambiguous. Write mo for months or min for minutes. | The unit m could mean months or minutes. | Write mo for months or min for minutes. |
Line 1: could not read "2026-01-01". Write two dates with the word to between them: 2026-01-01 to 2026-12-25. | A time-between calculation needs two dates joined by the word to. | Write both dates on the line with to between them. |
Questions people ask
How do I add days to a date?
Write the date, a plus sign and the days, such as 2026-11-21 + 45 days, and press Add or subtract. The result is the new date with its weekday. You can mix units, for example 3 weeks 2 days 4 hours.
How many days are between two dates?
Write both dates with the word to between them, such as 2026-01-01 to 2026-12-25, and press Time between dates. You get the total days and weeks as well as the years, months and days.
What is 31 January plus one month?
There is no 31 February, so the result moves back to the last day of the month: 28 February, or 29 February in a leap year. The same rule applies to any month that is shorter than the starting day.
Does it handle time zones and daylight saving?
No. Dates and times are plain clock values. A day is always 24 hours and no zone is applied, so across a daylight saving change the result may differ from a wall clock by an hour. It also ignores holidays and weekends.
Can I subtract time from a date?
Yes. Use a minus sign with spaces around it, such as 2026-11-21 14:30 - 90 min. Years, months, weeks, days, hours, minutes and seconds all work. The result keeps the time when the input or the duration has one.
About this tool
Dates are written year-month-day (2026-11-21) with an optional 24-hour time (14:30 or 14:30:15). Add or subtract takes a date, a + or - with spaces around it, and a duration made of years, months, weeks, days, hours, min and seconds. Years and months move the calendar first; if the day does not exist in the target month it moves back to the last day (31 January plus 1 month is 29 February in a leap year, and 29 February plus 1 year is 28 February). Time between dates gives years, months, days, hours, minutes and seconds, plus the totals. Everything is plain calendar and clock arithmetic: no time zones, no daylight saving, no holidays or business days, and years run from 0001 to 9999 using the Gregorian calendar throughout.