Date math

Add and subtract dates, count business days, and measure the span between two moments.

Runs in your browser — nothing you type here is sent anywhere.
from
to
90
calendar days
64
business days
0y 3m 0d
calendar walk, after

Tue 1970-03-31 17:00 is 3 months after Wed 1969-12-31 09:00.

calendar walk3 months
years0
months3
weeks12
days90
weekdays only64
minus holidays64
hours2,168
minutes130,080
seconds7,804,800
milliseconds7804800000
weekend days26
utc offset shiftnone
holidays skipped by business-day maths
11 accepted
step from the “from” date
lands onWed 1970-03-04 09:00
iso1970-03-04T09:00
weekdayWednesday
stepped over18 weekend or holiday days

45 business days after Wed 1969-12-31 09:00 is Wed 1970-03-04 09:00, stepping over 18 non-working days.

read a date the way a person writes it
read as 45 business days after now, skipping weekends — Wed 1970-03-04 18:00
resultWed 1970-03-04 18:00
iso1970-03-05T00:00:00.000Z
unix seconds5443200

A business-day offset typed here skips weekends only. The step section above also skips the holiday list.

from
weekdayWednesday
iso week1970-W01-3 of 53
day of year365 of 365
quarterQ4
month length31 days
days left in year0
utc offsetUTC-06:00
to
weekdayTuesday
iso week1970-W14-2 of 53
day of year90 of 365
quarterQ1
month length31 days
days left in year275
utc offsetUTC-06:00

Business days count the half-open span: the start date counts, the end date does not, so Monday to Friday is four. Month steps clamp rather than overflow — 31 January plus one month is the last day of February, never the third of March. Calendar units move calendar fields, so a day stays the same wall-clock time across a change of clocks.

Date arithmetic is full of small traps: months are different lengths, leap years exist, and business-day counting has to skip weekends. Doing it in your head is how off-by-one deadlines happen.

Add or subtract any unit from a date, or take the difference between two dates in days, weeks, months and years at once. The business-day mode counts only weekdays, which is the one people actually need for delivery dates and SLAs.

What people open it for

In the terminal

tools datemath

Every utility is also a command in the desktop's shell.

More data tools

Open the full desktop, with all 47 utilities