ΣCALCULATORWizard

📅 Date Calculator

Count days between dates, add or subtract any amount of time, explore every detail of any date, and see a full duration breakdown — all in one place.

Start day
Weekends
Operation
Amount to add / subtract
You can combine years, months, and days — e.g. “1 year, 6 months, 15 days”.
Get day of week, week number, quarter, day of year, days until next birthday, zodiac sign, and more.
Shows the gap between two dates expressed independently in every unit — years, months, weeks, days, hours, minutes, and seconds.

What Is a Date Calculator?

A date calculator performs arithmetic on calendar dates — finding how many days lie between two dates, projecting forward or backward from a known date, or breaking down a time span into its component parts. Unlike a simple subtraction problem, date math is complicated by months with different lengths (28, 29, 30, or 31 days), leap years that add an extra day every four years (with century exceptions), and the question of whether the start and end dates themselves count in the range.

This calculator handles all four core date-math tasks in one tool: counting days between dates with optional weekday-only filtering, adding or subtracting years, months, and days simultaneously, analyzing any single date in depth, and expressing the gap between two dates across every possible unit from seconds to years.

How Date Differences Are Calculated

The most common question is simple: how many days are between Date A and Date B? The standard method converts both dates to their underlying Unix timestamp (milliseconds since January 1, 1970), subtracts them, and divides by the number of milliseconds in a day (86,400,000). The result is exact and automatically accounts for leap years because those extra days are already baked into the timestamp system.

The “include vs. exclude start day” question matters in real scenarios. If you rent an apartment from January 1 to January 31, you’re charged for 31 days (inclusive) — January 1 counts. But if you ship a package on January 1 with 30-day delivery, the delivery date is January 31 (exclusive — day 1 of transit is January 2). Contract law, shipping, and financial calculations each have different conventions, which is why this calculator offers both options.

Adding and Subtracting Calendar Time

Adding days to a date is straightforward — add the day count to the day component and roll over months and years as needed. Adding months is trickier because months have different lengths. Adding one month to January 31 could mean February 28, February 29, or March 2 depending on the system used. This calculator uses JavaScript’s native setMonth and setFullYear methods, which follow the most common business convention: if the resulting date doesn’t exist (e.g., April 31), it rolls forward to the next valid date (May 1).

Weekdays Only — Business Day Counting

The weekdays-only mode iterates through every calendar day in the range and counts only Monday through Friday. This is useful for project timelines, contract deadlines, and any scenario where weekends don’t count. For a full business-day calculator that also excludes federal holidays, see our Business Days Calculator.

What the Date Info Mode Shows

FieldDescriptionExample (Mar 7, 2026)
Day of weekFull weekday nameSaturday
Day of yearOrdinal position in the year (1–366)66th day
ISO week numberWeek 1 = week containing first ThursdayWeek 9
QuarterQ1–Q4 based on monthQ1
Days left in yearRemaining days from date to Dec 31299 days
Leap yearWhether the year has 366 daysNo (2026)
Days since Unix epochDays since Jan 1, 197020,519
Western zodiac signBased on month and dayPisces

Duration Breakdown — All Units at Once

The Duration Breakdown mode expresses the same time gap in every unit independently and simultaneously. This is useful for certificates, reports, and anniversary messages where you might want to say “we have been together for 3 years, 847 days, 20,328 hours, or 1,219,680 minutes.” Each number is calculated from the raw millisecond difference, so all values are exact and consistent with each other.

Inclusive vs. Exclusive Day Counting

MethodJan 1 to Jan 5Common use
Inclusive (both ends)5 daysRental periods, hospital stays, event duration
Exclusive (end only)4 daysAge calculation, shipping transit days
Exclusive (start only)4 daysLoan interest accrual, most programming
Exclusive (both ends)3 daysRare; some legal “clear days” calculations

Frequently Asked Questions

How many days between two dates?
Use the Days Between mode: enter your start and end dates, choose whether to include the start day, and click Calculate. The result shows total days, an exact years/months/days breakdown, total weeks, and weekday count. The calculation is accurate to the day and handles leap years automatically.
How do I calculate what date is 90 days from today?
Switch to Add / Subtract mode, enter today as the starting date, enter 90 in the Days field, make sure “Add time” is selected, and click Calculate. You’ll see the exact result date with the day of week. You can also combine years and months with days — for example, “1 year, 0 months, 90 days.”
How do I find what day of the week a date is?
Switch to Date Info mode, enter any date (past, present, or future), and click Calculate. The result shows the full day name (Monday, Tuesday, etc.) along with the ISO week number, day of year, quarter, zodiac sign, whether it’s a leap year, and days remaining in that year.
Does this account for leap years?
Yes, fully and automatically. The underlying calculation uses Unix timestamps in milliseconds, which already encode every leap day. Whether your range spans one leap year or several, the day count is always exact. The Date Info mode also tells you explicitly whether any given year is a leap year.
What is the difference between calendar days and weekdays?
Calendar days count every day including weekends — the raw number you get from subtracting two dates. Weekdays (also called business days or working days) count only Monday through Friday and skip Saturdays and Sundays. A 30-calendar-day month typically contains only 22 weekdays. The Days Between mode offers a toggle to switch between both counting methods.
Can I calculate dates far in the future or distant past?
Yes. JavaScript’s Date object supports years from approximately −271,821 to 275,760. For practical purposes the calculator handles any date from the late 1800s to the year 3000 without issue. Note that the Gregorian calendar was adopted in October 1582, so dates before that technically use a different historical calendar system.