Date Arithmetic

Date & Time

Add or subtract time units from a date while keeping everything private and in-browser.

Start Date

Switch to UTC to match server-side schedules and logs.

Date Math

Months and years clamp to the last valid day if needed.
Result (Local) --
Result (UTC) --
ISO 8601 --
Unix Timestamp (Seconds) --

How it works

Calendar-aware math: Month and year jumps respect the real calendar.
UTC toggle: Switch between local time and UTC to match your workflow.
Instant outputs: Copy the result as a readable date, ISO string, or Unix time.
Private: Everything runs locally in your browser with no uploads.

Frequently Asked Questions

What is date arithmetic?

Date arithmetic is the calculation of adding or subtracting specific units of time (such as days, weeks, months, or years) to or from a starting calendar date to determine an exact future or past date.

How does adding months handle dates with different days (like January 31st)?

When adding or subtracting months, if the target month has fewer days than the starting day (for example, adding one month to January 31st), the calculator clamps the result to the last valid day of that target month (February 28th, or February 29th in a leap year).

Can I perform date arithmetic in UTC instead of local time?

Yes, use the 'Time Standard' dropdown to switch between your local browser timezone and UTC. Calculating in UTC avoids unexpected time jumps caused by Daylight Saving Time (DST) transitions.

How do I calculate a past date?

Set the Operation dropdown to 'Subtract' and enter the amount of days, weeks, months, or years you wish to count backward from the selected date.

What output formats are provided?

The calculator instantly outputs four convenient formats: a formatted local date string, UTC string, standard ISO 8601 timestamp, and numeric Unix epoch timestamp.

How helpful was this tool?

Loading rating...