Date Calculator

Days between two dates, working days only, add or subtract a duration, age, week number and day of year — all in your browser.

Runs entirely in your browser — nothing is uploaded
Total days30
Weeks + days4w 2d
Calendar0y 0m 30d
Whole months0
Both ends counted31

Difference

30 days
FromFriday, August 28, 2026
ToSunday, September 27, 2026
Total days30
Counting both ends31
Weeks and days4 weeks, 2 days
Years, months, days30 days
Whole months0
Hours (24 h/day)720
Minutes (nominal)43,200
Seconds (nominal)2,592,000

Hours, minutes and seconds are nominal — 24 hours per day. A real day that crosses a daylight-saving change is 23 or 25 hours long in local time, so use these for rough sizing, not for billing.

Working days

21 of 31
Working days21
Weekend days10
Holidays skipped0
Days counted31

Set the weekend and holidays under Working-day rules below. Counted over 31 calendar days, including both the start and end dates.

Working-day rules

5-day week
Non-working days of the week
Endpoints

“Working days between Monday and Friday” is 4 or 5 depending on a convention nobody states. Both endpoints on gives 5 — the right answer for “how many days am I away for”. Turn the start off for “how many days until the deadline”.

Public holidays — one date per line

There is no built-in holiday calendar — public holidays differ by country, state and year, and a bundled list would quietly go stale. Paste your own: YYYY-MM-DD, an optional label after it, # for comments.

Everything here is a calendar date — a year, a month and a day, with no clock time and no time zone. That is deliberate: subtracting two timestamps and dividing by 86,400,000 gives the wrong answer across a daylight-saving change, where a local day is 23 or 25 hours long. Today is taken from your device clock, which reports UTC. Paste a full timestamp and the time part is discarded, and you are told so.

About the Date Calculator

Four calculators in one, all working on plain calendar dates. Days between gives a span as total days, as weeks and days, and as calendar years, months and days — alongside the same span counted in working days only. Add or subtract moves a date by a duration or by a number of working days. Age gives years, months and days on any reference date, with the weekday you were born on and a countdown to the next birthday. Date facts reports the weekday, day of year, quarter, both week-numbering systems, and the Julian Day Number and spreadsheet serial for a single date.

The pitfall in date arithmetic is that a JavaScript Date — like a spreadsheet cell or a database TIMESTAMP — is an instant on a timeline, not a day on a calendar. new Date('2026-03-01') parses as midnight UTC, while new Date('2026-03-01T00:00:00') parses as midnight local, so anywhere west of Greenwich the first still reads back as 28 February. That single inconsistency is where most off-by-one-day bugs come from. Worse, (b - a) / 86400000 is flatly wrong across a daylight-saving change, where a local day runs 23 or 25 hours: the quotient comes out as 30.958 and floors to 30 when the true answer is 31. This tool sidesteps both by never holding a Date at all — every date becomes an integer day count on the proleptic Gregorian calendar, which contains no clock, no zone and no DST. A time of day pasted into a field is discarded and you are told so, and a date typed as 05/03/2026 is refused rather than guessed at, because 5 March and 3 May are both defensible readings.

Working days are counted with a closed-form weekday count rather than a day-by-day loop, so a thousand-year range costs the same as a single week. You choose which days of the week are non-working — Saturday and Sunday is only one convention, and Friday–Saturday or Sunday alone are normal elsewhere — and whether each endpoint is counted. That second switch matters more than it looks: “working days between Monday and Friday” is 4 or 5 depending on a convention nobody states out loud, and a leave form and a payroll system disagreeing on it is a real category of dispute. There is deliberately no built-in holiday calendar. Public holidays differ by country, state, employer and year, and a bundled list on a static site would rot silently. Paste your own — one YYYY-MM-DD per line, with optional labels — and any holiday landing on a day that is already non-working is reported separately so it can never be subtracted twice.

Some results here are surprising, and are meant to be rather than smoothed over. Adding one month to 31 January gives 28 February, which means month arithmetic is not reversible: 31 January plus one month minus one month is 28 January. Every result where a day-of-month had to be clamped says so explicitly. A 29 February birthday has no anniversary in a common year; this tool takes it as 28 February, matching England and Wales and most software, while other jurisdictions use 1 March. And the two week-numbering systems genuinely disagree — ISO 8601 starts week 1 at the week containing the first Thursday, so 1 January 2021 falls in week 53 of ISO year 2020, whereas Excel's WEEKNUM puts 1 January in week 1. Both are shown side by side, because quietly mixing them is what breaks a weekly report. Excel serial numbers before 1 March 1900 are shown as unavailable rather than as a number, because Excel carries a phantom “29 February 1900” and every earlier serial it produces is off by one.

Everything runs inside your browser using standard web APIs. Your data is never uploaded, never stored on a server, and never leaves your device — you can confirm that by opening your browser devtools Network tab, or by switching off your Wi-Fi and using the tool offline.

Frequently asked questions

Why is my date coming out one day early?

Almost always the UTC-versus-local parsing split. new Date('2026-03-01') is midnight UTC, but new Date('2026-03-01T00:00:00') is midnight in your local zone, and getDate() reads back local — so anywhere west of Greenwich the first gives you 28 February. The root cause is usually storing a birthday or an invoice date as a timestamp rather than a plain date; a DATE column has no zone to get wrong. This tool never converts through an instant at all, so the day you type is the day it counts.

Are there 4 or 5 working days between Monday and Friday?

Both, depending on what you are counting, which is why there is an explicit switch for each endpoint rather than a silent default. Counting both endpoints gives 5 — right for "how many days am I away for". Dropping the start date gives 4 — right for "how many days until the deadline". Getting this wrong is one of the most common sources of disagreement between a leave form and a payroll system.

Why is there no list of public holidays built in?

Because it would be wrong for most visitors most of the time. Public holidays vary by country, by state or province, by employer and by year: English bank holidays move, US federal holidays are observed on adjacent weekdays, and substitute days are granted under different rules everywhere. A bundled list shipped with a static site would also go stale the moment it was published. Pasting your own dates takes seconds and is the only version that is actually correct for you.

What is 31 January plus one month?

28 February, or 29 February in a leap year — every calendar system clamps to the end of the shorter month. The consequence is that the operation is not reversible: going forward one month and back one month from 31 January lands on 28 January. This tool flags every result where clamping happened, because a subscription renewal or payment-terms calculation that quietly loses three days is expensive.

When does someone born on 29 February have a birthday?

There is no single answer. This tool uses 28 February in common years, which matches England and Wales and most software. Scotland and several other jurisdictions treat 1 March as the legal anniversary. If the result is going to be used for something legal — a coming-of-age date, a contract term, an insurance threshold — check the rule for that jurisdiction rather than trusting any calculator, including this one. The tool says out loud which rule it applied.

Why do the two week numbers disagree?

They are different systems, both correct on their own terms. ISO 8601 week 1 is the week containing the first Thursday, weeks start on Monday, and a week can belong to a different year than its dates — 1 January 2021 is in ISO week 53 of 2020. Excel's WEEKNUM puts 1 January in week 1 and starts weeks on Sunday by default. Joining a report that uses one to a report that uses the other loses or duplicates a week, so both are shown together.

Does this work for historical dates before 1582?

It extrapolates the Gregorian calendar backwards — the proleptic Gregorian calendar, which is what ISO 8601 and every database use. It does not model the Julian calendar or the fact that countries switched at different times, Britain not until 1752. So for genuine historical research the dates will not line up with contemporary records. The supported range is year 1 to 9999.