Date & Time Calculator
Date arithmetic is surprisingly tricky โ months have different lengths, leap years shift things, and "business days" depends on where you are. This calculator handles all of that without you having to think about it. Five modes cover the practical cases: date difference, time duration, combined datetime, age calculation, and countdown.
Date & Time Calculator
Five calculation modes โ dates, times, age, business days, and countdowns.
Five calculation modes
Date Difference
Enter two dates and get the gap in years, months, total days, and โ importantly โ business days. Configure your work week (MondayโFriday or custom) to get an accurate count of working days between any two dates. Perfect for project planning, contract timelines, or just figuring out how long something actually took.
Time Duration
Pure time arithmetic: enter start and end times (HH:MM:SS) and get the difference in hours, minutes, and seconds. Handles overnight spans correctly โ if your start time is after your end time, it treats the gap as crossing midnight.
Date + Time (DateTime)
Combines both โ enter precise datetime stamps and get the full difference down to the second. Useful when you need exact elapsed time between two events, like measuring how long a process ran or how long ago a log entry was written.
Age Calculator
Enter a birth date and get the current age in years, months, and days โ handling leap years and variable month lengths correctly. Useful for HR systems, medical forms, or anywhere an exact age matters.
Countdown
Enter a future date/time and see a live countdown in days, hours, minutes, and seconds. Updates every second. Good for deadlines, launches, or events you're tracking.
Calculating differences between dates
Counting the days between two dates sounds trivial โ subtract one from the other. In practice, the calendar's irregular structure makes this deceptively hard to do mentally. Months have 28, 29, 30, or 31 days. Leap years occur every four years (with exceptions for century years not divisible by 400). A calculation that crosses February of a leap year gives a different answer than one that doesn't.
The calculator converts both dates to a count of days since a fixed epoch (internally, milliseconds since 1 January 1970 in most JavaScript environments) and subtracts. The result in raw days is exact. From there it decomposes the total into years, months, and remaining days using the actual calendar month lengths, not an average of 30.44 days per month.
Worked example: project start to delivery
Notice that "2 months and 16 days" is not simply 75 รท 30. January has 31 days, February has 28 days in 2026, and the decomposition accounts for each month's actual length.
This decomposition matters when communicating durations. Telling a client a project took "two months and sixteen days" is more intuitive than saying "seventy-five days," even though both are accurate. The calculator provides both forms so you can use whichever suits the context.
Business days vs calendar days โ the part most calculators get wrong
Calculating business days sounds simple but has a few edge cases worth understanding. The calculator steps through the date range day by day and counts only weekdays. The default work week is MondayโFriday, but you can adjust both the start and end day. This matters if you work in a country where the work week is SundayโThursday, for example.
The difference between calendar days and business days is often larger than people expect. A range spanning two weekends loses four weekend days. A month-long range loses eight to ten weekend days depending on how it aligns with the calendar. For legal deadlines, payment terms, and project scheduling, using the wrong figure can mean missing a deadline or misquoting a timeline.
How the business day count works
- 1. The start date is included in the count.
- 2. The end date is excluded (same convention as most scheduling systems).
- 3. Each day between start and end is checked: if it falls on a configured work day, it counts.
- 4. The calendar difference (total days) is always shown alongside business days so you can compare both.
Note: the calculator doesn't include public holidays โ it only excludes weekends. If you need holiday-aware calculations, add the holiday count manually to the business day result.
Practical example: "Net 30" payment terms
An invoice issued on Friday 6 March 2026 with Net 30 calendar day terms is due on Sunday 5 April 2026. But if the contract specifies "30 business days," the due date moves to Thursday 16 April 2026 โ eleven calendar days later. Getting this wrong means either chasing payment too early or letting it slide too long.
Use the Date Difference mode, set the start date to the invoice date, and read off the business day count directly. Alternatively, use the Add/Subtract mode to find the date that is exactly 30 business days from today.
Time zones and UTC โ why they complicate date math
When both your timestamps are in the same time zone, date arithmetic is straightforward. When they span time zones, the apparent difference can be off by hours. A meeting scheduled at 14:00 in New York and a reply sent at 21:00 in London appears to be a 7-hour gap โ but New York is UTC-5 and London is UTC+0, so the actual elapsed time is only 2 hours (14:00 EST = 19:00 UTC; 21:00 GMT = 21:00 UTC).
UTC (Coordinated Universal Time) is the gold standard for cross-timezone calculations. It is the reference point against which all time zones are defined. UTC has no daylight saving adjustment, which makes it stable and unambiguous. When comparing timestamps from different time zones, the most reliable approach is to first convert each timestamp to UTC, then subtract. The result is the true elapsed time regardless of where in the world each event occurred.
Common UTC offsets (standard time)
Pacific US (PST)
Eastern US (EST)
London (GMT)
Central Europe (CET)
Moscow (MSK)
India (IST)
China/Singapore (CST/SGT)
Japan (JST)
Sydney (AEST)
The calculator's DateTime mode works in local browser time. For cross-timezone work, convert both inputs to UTC manually before entering them. A useful shorthand: ISO 8601 datetime strings with a "Z" suffix (e.g., 2026-03-15T14:00:00Z) are always UTC. If your timestamps are in this format, they are already comparable without further conversion.
Daylight saving pitfalls
Daylight Saving Time (DST) transitions cause two categories of problem. On the "spring forward" day, clocks skip an hour โ so there is a moment in time that does not exist in local time (e.g., 02:30 local time on the day clocks move from 02:00 to 03:00). On the "fall back" day, an hour is repeated โ so a given local time occurs twice, and you cannot tell which occurrence is meant without additional context.
For date differences spanning a DST transition, using local time can produce results that are off by an hour. A range from 10:00 on the day before DST starts to 10:00 on the day after spans 25 hours in real time (one clock hour was skipped), not 24. UTC timestamps avoid this completely: UTC does not observe DST, so 1 day = exactly 86,400 seconds in UTC, always.
DST transition example (US, spring 2026)
Clocks in US Eastern time zone spring forward on 8 March 2026 at 02:00 โ 03:00.
A meeting scheduled at 01:30 EST does not exist on that day โ the clock jumps past it.
A duration calculated as "from midnight to midnight on 8 March" in local time is only 23 hours long, not 24.
UTC equivalent: midnight to midnight is always exactly 24 hours. The DST shift is invisible from UTC's perspective.
For most everyday uses โ how many days until a holiday, how old someone is, how long a project took โ DST does not introduce a meaningful error. But for scheduling, billing, and log analysis that crosses DST transitions, always use UTC to eliminate any ambiguity.
Age and duration calculations
Age calculation is more nuanced than subtracting birth year from current year. The month and day of birth determine whether the birthday has occurred yet in the current year. Someone born on December 15, 2000, is still 25 years old on November 30, 2026 โ their 26th birthday has not happened yet. A naive year-subtraction gives the wrong answer.
The calculator handles this correctly. It computes the number of complete years elapsed (where a year is considered complete only after the birthday has passed), then adds the remaining months and days. The result is exact to the day: "25 years, 11 months, 15 days" rather than just "25 years."
Leap year edge case: born on February 29
People born on February 29 have a birthday that only exists in leap years (every four years). In non-leap years, the convention varies: some jurisdictions treat February 28 as the legal birthday, others treat March 1. The calculator reports the exact elapsed time in years, months, and days from the birth date to today, which is always precise regardless of the birthday convention used.
Birth: 29 February 2000
Today: 7 June 2026
Age: 26 years, 3 months, 9 days
Duration calculations follow the same logic. The "duration" of a project, employment, or subscription is expressed in years, months, and days with full calendar accuracy. This matters for pro-rata billing, probation period calculations, and any context where a month is not assumed to be exactly 30 days.
For employment duration specifically, the difference between "6 months and 1 day" and "exactly 6 months" can affect whether someone qualifies for statutory rights in some jurisdictions. The day-accurate calculation removes any guesswork.
Deadline and countdown math
Countdowns to a future date or deadline are one of the most practical uses of date arithmetic. The questions are simple: how many days until the deadline? How many hours remain? The live countdown mode answers these questions with a display that updates every second, so you always have the current remaining time.
Beyond simple countdowns, deadline math also involves working backward from a target date. If a report is due on 31 July and requires 20 business days of review before submission, you need to know when to start the review. Count back 20 business days from July 31 and you get the latest possible start date. Missing that date means either compressing the review or missing the submission deadline.
Working backward from a deadline
This kind of milestone planning โ working backward from the final deadline through each stage โ is standard practice in project management. The calculator makes each step fast and accurate, correctly skipping weekends when counting business days.
For recurring deadlines โ quarterly reports, monthly billing cycles, annual filings โ the date difference mode helps you verify that the next occurrence is the correct number of calendar days from the last one, and flags when a recurring date falls on a weekend so you can adjust to the nearest working day.
Common date calculation mistakes
Even experienced planners and developers make systematic errors with date arithmetic. Here are the most common ones and how the calculator helps you avoid them.
Off-by-one errors
Is the start date included or excluded in the count? Is the end date included or excluded? Different systems use different conventions. This calculator is explicit: the start date is counted, the end date is not โ the same convention used by most programming languages and scheduling systems. Always confirm the convention being used before presenting a day count to someone else.
Assuming every month has 30 days
A common shortcut is to assume 30 days per month when estimating durations. Over short spans this is close enough. Over longer periods the error accumulates: a year calculated as 12 ร 30 = 360 days is 5 days short of the actual 365. For any calculation that matters โ a contract, an SLA, a billing cycle โ use the actual calendar rather than the approximation.
Confusing calendar days with business days
"I'll have it done in two weeks" means different things to different people. In a business context it often means 10 working days, which is 14 calendar days only if no weekends fall in the middle โ and they always do. When deadlines matter, be explicit about which kind of days you mean, and use the calculator to get the exact date.
Forgetting that "year" fractions are not uniform
"Six months from today" is not always 182 days. If today is August 15, six months from today is February 15 โ which is 184 days away (Aug 16 days + Sep 30 + Oct 31 + Nov 30 + Dec 31 + Jan 31 + Feb 15). The exact count depends on which months are crossed. Always compute the target date directly rather than adding a fixed number of days as a proxy for months.
What people actually use this for
Project and sprint planning
How many working days between the kickoff and the deadline? Include weekends or not?
Invoice and payment terms
"Net 30 days" โ from which date? How many business days is that actually?
HR and onboarding
Age verification, probation period end dates, contract duration in working days.
Legal and compliance deadlines
X days from filing date, X business days from receipt โ precise date arithmetic for deadlines that matter.
Age on a specific date
How old will someone be on a given date? Useful for eligibility checks.
Event countdowns
Days until a launch, conference, or release โ live updating countdown.
Frequently Asked Questions
How are business days calculated?
The calculator steps through each day in the range and counts only days that fall within the configured work week (MondayโFriday by default). You can change the work week start and end to match your region.
Can I calculate an exact age?
Yes โ switch to Age mode, enter a birth date, and get back years, months, and days with full leap year and month-length handling.
What's the difference between Date and DateTime mode?
Date mode works with calendar dates only. DateTime mode adds time inputs so you can calculate the gap down to hours, minutes, and seconds.
Does the countdown update in real time?
Yes โ the countdown refreshes every second while the page is open.
How do time zones affect the calculation?
The calculator uses your local browser time. For cross-timezone comparisons, convert both timestamps to UTC first โ UTC is free of daylight saving adjustments and gives an unambiguous result.
What about daylight saving time transitions?
For calendar-day calculations, DST rarely introduces an error. For hour-precise calculations that cross a DST boundary, convert to UTC first to avoid an off-by-one-hour result on the transition days.
Related Articles & Guides
Date & Time Calculations: Complete Developer Guide
Dates and times are deceptively simple. You look at a calendar, count the boxes between two dates, and callโฆ
Read guide โArticleDate & Time Calculator: Business Days, Age, Countdowns & Duration
Calculate date differences with business days, exact age from birth date, event countdowns, and precise time durations โ five calculation modes in one tool.
Read guide โBlogYour Age in Days: Milestones, Facts & Why It Matters
Most of us measure our lives in years. But switch to days, and suddenly ordinary ages start to feelโฆ
Read guide โ