Date Add / Subtract
Shift a date by calendar months (with correct end-of-month clamping) plus weeks, days, hours and minutes, and see the result in ISO 8601, RFC 2822 and weekday form.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
Shifting a date by a chosen amount
Type a base date, either plain YYYY-MM-DD or a full timestamp such as 2024-01-01T00:00:00Z, pick Add or Subtract, and dial in years, months, weeks, days, hours and minutes. The answer is shown as ISO 8601, RFC 2822, a weekday name and the number of calendar days moved.
Counting to a deadline or anniversary
It is straightforward for a due date: take today, add the number of weeks or days, and read off the resulting weekday and RFC 2822 string for a calendar invite. Leaving the base empty uses the current moment.
Months clamp at the month end
Years and months are applied first on the calendar fields, so January 31 plus one month lands on February 28 or 29 rather than rolling into March. Weeks, days, hours and minutes are then added as fixed spans of time, which keeps the order of evaluation predictable.
Calendar maths over fixed time
The year and month shift stays calendar aware, while weeks, days, hours and minutes are pure arithmetic on the clock. Because the former changes the day number, the two stages are not interchangeable when the base month is short.
Dates are computed on device
The arithmetic runs in the page using the browser clock. The base date and the result are never sent to a server, and the tool needs no network to give you the shifted date.
Questions
What happens to January 31 plus one month?
The day is clamped to the last day of the target month: January 31 + 1 month is February 28 (or 29 in a leap year), never March 2 or 3.
What base date formats are accepted?
A plain YYYY-MM-DD is treated as a UTC date, and any full string the Date parser understands, such as 2024-01-01T12:00:00Z, is accepted. An empty box defaults to the current time.
How is the days-from-base figure computed?
It is the signed difference in whole 24-hour days between the result and the base date, so months that change the day count show up clearly next to the new date.
Related tools
See categoryDate Difference Calculator
Measure the exact gap between two dates in every unit, including business days.
Age Calculator
Work out an exact age plus totals, zodiac sign and next birthday.
Countdown Timer
Run several countdown timers at once, each with a sound and an optional notification when it ends.
Duration Converter
Convert durations between human, ISO 8601, clock and plain-seconds forms.