Date Difference Calculator — Days, Weeks & Business Days Between Two Dates

Find the exact number of days, weeks, months, or business days between any two dates

Common Date Differences

Jan 1 → Dec 31=364 days
Jan 1 → Dec 31 (leap)=365 days
Jan 1 → Jun 30=180 days
1 full year=365 or 366 days
52 weeks=364 days
6 months (avg)=182–184 days
90 days from today=≈ 3 months
100 business days=≈ 20 weeks
Calculate days between two dates including business days and weekends

Select Dates

Common Uses

Project Planning

Calculate project duration and deadlines

Event Countdown

Days until vacation, wedding, or holidays

Work & Payroll

Calculate working days for payroll

Frequently Asked Questions

How do I calculate days between two dates?

Enter your start and end dates and the calculator instantly shows the difference in days, weeks, months, and years. It accounts for varying month lengths and leap years automatically. For manual calculation, you can subtract the earlier date from the later date, but this gets complex across different months — our tool handles February's 28/29 days, 30-day and 31-day months seamlessly.

How does the calculator handle leap years?

Our calculator automatically detects leap years (every 4 years, except centuries not divisible by 400) and accounts for February having 29 days instead of 28. For example, the difference between January 1, 2024 and March 1, 2024 is correctly calculated as 60 days (since 2024 is a leap year), whereas in 2023 the same span would be 59 days.

Can I calculate business days (excluding weekends) between two dates?

Yes, the calculator shows both total calendar days and business days (weekdays only). Business day calculation excludes Saturdays and Sundays. This is useful for project planning, contract deadlines, shipping estimates, and calculating working days for payroll. Note that public holidays are not automatically excluded, as they vary by country and region.

How many days are there in a year?

A regular year has 365 days, while a leap year has 366 days. On average, a year is 365.2425 days long, which is why we add a leap day every 4 years. For practical purposes: a year has 52 weeks and 1 day (or 2 days in a leap year), approximately 260 business days, and 104-105 weekend days.

What are common uses for a date difference calculator?

Date calculators are widely used for: counting down to events (weddings, vacations, due dates), calculating age or duration of employment, determining contract or lease periods, tracking pregnancy weeks, planning project timelines with business days, calculating interest accrual periods for loans, and figuring out how many days until a deadline or retirement date.

How Date Difference Calculations Work

Calculating the difference between two dates involves more than simple subtraction. The Gregorian calendar has months of varying lengths (28 to 31 days), and leap years add an extra day to February every four years. A proper date difference calculator must account for all of these irregularities to produce an accurate result. The fundamental approach converts both dates into a common reference (typically the number of days since a fixed epoch) and then finds the difference.

When breaking the result into years, months, and days, the calculation follows calendar logic. Starting from the earlier date, it counts complete years first, then complete months, and finally the remaining days. This means the "months" and "days" portion of the result respects actual calendar boundaries rather than using a fixed 30-day approximation. For example, the difference between January 31 and March 1 is one month and one day, not simply 29 or 30 days expressed as months.

Business Days vs. Calendar Days

One of the most important distinctions in date calculations is the difference between calendar days and business days. Calendar days include every day on the timeline, including weekends and holidays. Business days (also called working days) typically count only Monday through Friday, excluding Saturdays and Sundays. Some advanced calculations also exclude public holidays, which vary by country and region.

This distinction matters in many professional contexts. Legal deadlines often specify business days, meaning a five-business-day deadline actually spans a full calendar week. Shipping companies usually quote delivery times in business days. Payroll departments count working days to calculate wages for hourly and salaried employees. Understanding which type of day count applies to your situation prevents costly miscalculations and missed deadlines.

Leap Year Handling and Edge Cases

Leap years occur every four years, with exceptions for century years that are not divisible by 400. This means 2000 was a leap year, but 1900 was not. Leap years add February 29 to the calendar, which creates edge cases in date arithmetic. For instance, calculating the difference between February 28 and March 1 yields different results depending on whether the year is a leap year (2 days vs. 1 day).

Another edge case involves end-of-month dates. If you calculate the date one month after January 31, the result is February 28 (or 29 in a leap year), since February does not have 31 days. Our calculator handles these edge cases automatically, ensuring you always receive a mathematically and calendrically correct result.

Common Use Cases for Date Calculations

Date difference calculators serve a wide range of practical purposes. Project managers use them to determine project timelines, calculate sprint durations, and set milestone dates. Event planners count down to weddings, conferences, and product launches. Human resources departments calculate employee tenure, probation periods, and time-off accruals. Students and academics track semester lengths and assignment deadlines.

In personal life, date calculators help you figure out how many days until a vacation, how long you have been in a relationship, or the exact number of weeks in a pregnancy. Financial applications include calculating the number of days for interest accrual on loans, determining bond maturity dates, and computing late payment penalties. Whatever your need, having an accurate and flexible date difference tool saves time and eliminates the guesswork involved in manual calendar counting.

International Date Formats and Standards

Date formats vary significantly across countries, leading to potential confusion when calculating date differences. The United States uses MM/DD/YYYY format (February 14, 2026 = 02/14/2026), while most of Europe uses DD/MM/YYYY (14/02/2026), and the ISO 8601 international standard mandates YYYY-MM-DD (2026-02-14). This means the date 03/04/2026 represents March 4 in the U.S., but April 3 in the UK — a critical distinction that can cause errors in contracts, travel bookings, and international business.

Our date difference calculator uses the ISO 8601 standard (YYYY-MM-DD) to eliminate ambiguity. This format is unambiguous, sorts correctly in databases, and is the globally recognized standard for data exchange. When entering dates from documents or emails, always verify which format is being used. A payment due "30 days from 05/06/2026" could mean either May 6 or June 5 depending on the sender's location.

The ISO week date system is another international standard used in business and manufacturing. It defines weeks as Monday through Sunday, with Week 1 being the week containing the first Thursday of the year. This system ensures that all weeks have exactly 7 days and each year has either 52 or 53 complete weeks. Europe widely uses ISO week numbers for production planning, delivery schedules, and fiscal calendars.

Legal and Contractual Date Counting Methods

Legal systems have precise rules for counting days in contracts, court deadlines, and statutory periods. In most U.S. jurisdictions, when a statute says "within 30 days," day 1 is the day after the triggering event, not the event day itself. If you receive a notice on January 15, the 30-day period starts January 16 and ends February 14. However, if the deadline falls on a weekend or holiday, it typically extends to the next business day.

The Federal Rules of Civil Procedure in the United States specify that when calculating periods stated in days, exclude the day of the event that triggers the period, count every day including weekends and holidays, and if the deadline falls on a Saturday, Sunday, or legal holiday, the period continues to the next day that is not a Saturday, Sunday, or legal holiday. For example, a 14-day period starting Monday, December 23 ends on Monday, January 6 (skipping Christmas and New Year's Day).

Rental and lease agreements often use specific date counting conventions. A lease from March 15 to May 15 might be interpreted as 61 days (March 15 through May 15 inclusive) or 60 days (March 15 through May 14) depending on contract language. The term "net 30" in invoicing means payment is due 30 days from the invoice date, typically calculated as calendar days, not business days. Always read the fine print to understand whether dates are counted inclusively or exclusively.

International contracts must specify not only the date format but also the governing law for date calculations. A contract between a U.S. and French company might specify "30 business days calculated according to French civil law," which could differ from U.S. interpretations. Time zones also matter: a deadline of "March 15, 2026" without a time zone could mean 11:59 PM in any of 24+ time zones, a span of 48 hours. Always clarify "March 15, 2026 at 5:00 PM EST" for precision.

Historical Calendar Changes: Julian to Gregorian

The Gregorian calendar we use today was adopted in October 1582 by Pope Gregory XIII to correct the drift in the Julian calendar, which had been used since 45 BC. The Julian calendar assumed a year was exactly 365.25 days, but the true solar year is 365.2422 days — an 11-minute annual error that accumulated to 10 days by 1582. To correct this, Pope Gregory decreed that Thursday, October 4, 1582 would be followed by Friday, October 15, 1582, skipping 10 days entirely.

Different countries adopted the Gregorian calendar at different times, creating complex date conversion issues for historians and genealogists. Catholic countries like Spain, Italy, and Portugal adopted it in 1582. Protestant countries resisted for decades: Britain and its colonies (including America) switched in September 1752, skipping 11 days (September 2 was followed by September 14). Russia did not adopt the Gregorian calendar until 1918, and Greece waited until 1923.

This creates fascinating date calculation challenges. George Washington was born on February 11, 1731 under the Julian calendar (used in British America at the time), but after the 1752 calendar change, his birthday became February 22, 1732 under the Gregorian calendar. Historical documents dated before the calendar switch must be carefully interpreted. A date written as "10 March 1650" in England could be March 10 Old Style (Julian) or March 20 New Style (Gregorian), depending on context.

When calculating date differences across the Julian-Gregorian boundary, specialized algorithms account for the missing days. For instance, the span from October 1, 1582 to October 20, 1582 is only 9 days in the Gregorian calendar due to the 10-day skip. Modern software and online calculators typically assume the Gregorian calendar for all dates, but historical research tools must handle both systems correctly.

Date Arithmetic in Excel and Programming

Microsoft Excel stores dates as serial numbers, with January 1, 1900 = 1 (on Windows) or January 1, 1904 = 0 (on Mac). This means February 14, 2026 is stored as approximately 46,089 (days since January 1, 1900). To calculate the difference between two dates in Excel, simply subtract: =A2-A1 gives the number of days. The DATEDIF function provides more flexibility: =DATEDIF(A1,A2,"Y") returns complete years, while =DATEDIF(A1,A2,"YM") returns remaining months.

Excel's NETWORKDAYS function calculates business days: =NETWORKDAYS(A1,A2) returns the number of working days (excluding weekends). The enhanced NETWORKDAYS.INTL function allows you to specify which days constitute the weekend: =NETWORKDAYS.INTL(A1,A2,11) treats Sunday as the only weekend day (common in Middle Eastern countries where the work week is Sunday-Thursday).

In programming languages, date arithmetic libraries handle the complexity. Python's datetime module allows: delta = date2 - date1 to get a timedelta object with days, seconds, and microseconds. JavaScript uses milliseconds since January 1, 1970 (Unix epoch): Math.floor((date2 - date1) / (1000 * 60 * 60 * 24)) calculates days. SQL databases provide DATEDIFF functions: DATEDIFF(day, startdate, enddate) in SQL Server or DATEDIFF(enddate, startdate) in MySQL.

Beware of common pitfalls: Excel has a known bug where it incorrectly treats 1900 as a leap year (it was not), meaning dates before March 1, 1900 are off by one day. Floating-point precision can cause errors with very distant dates. Time zones complicate matters: two dates might be 1 day apart in one time zone but the same date in another. For mission-critical applications, always use well-tested date libraries rather than manual calculations, and add comprehensive test cases covering leap years, month boundaries, and century transitions.

Project Management and Timeline Planning

Project managers rely on accurate date calculations to create realistic timelines, identify critical paths, and communicate deadlines to stakeholders. A construction project starting March 1 with a 120-day deadline must be completed by June 29 (120 calendar days), but if the contract specifies 120 working days and excludes weekends, the actual deadline extends to approximately August 15 — a difference of 47 days. Misunderstanding this distinction can lead to penalties, budget overruns, and damaged client relationships.

Gantt charts visualize project timelines by plotting tasks against calendar dates. Each task has a duration measured in days or weeks, dependencies that determine sequencing, and resource constraints. Date difference calculators help project managers verify that task durations add up correctly. If Task A runs March 1-15 (15 days) and Task B runs March 16-30 (15 days), the total project duration is 30 days, not 29. The inclusion or exclusion of endpoint dates makes a one-day difference that compounds across dozens of tasks.

Agile software development uses time-boxed sprints, typically 2-week iterations. A team starting a sprint on Monday, February 3 will end on Friday, February 14 — exactly 10 working days. Sprint planning requires calculating these boundaries precisely because release schedules, stakeholder demos, and team capacity all depend on the exact sprint calendar. Many teams use automated tools to handle sprint date calculations, but understanding the math ensures you can verify results and catch configuration errors.

Public holidays significantly impact project timelines. A 20-business-day project spanning Thanksgiving (U.S.) must account for Thursday and Friday as non-working days. International projects are even more complex: a global team might celebrate different holidays (Diwali in India, Chinese New Year in China, Christmas in Europe), requiring careful coordination to identify truly overlapping working days. Date calculators that support custom holiday calendars are essential for multinational project planning.

Medical and Pregnancy Date Calculations

Obstetrics uses precise date calculations to estimate due dates and monitor fetal development. The standard pregnancy calculation method counts 40 weeks (280 days) from the first day of the last menstrual period (LMP), not from conception. This means "week 1" of pregnancy includes approximately 2 weeks before conception actually occurred. If LMP was January 1, the estimated due date (EDD) is October 8 — exactly 40 weeks later.

Pregnancy weeks are critical for prenatal care and fetal development assessment. Each week brings specific milestones: the heartbeat is detectable around week 6, major organs form by week 10, viability (ability to survive outside the womb with medical support) begins around week 24, and full term is considered 37-40 weeks. Doctors use gestational age (time since LMP) rather than fetal age (time since conception) for consistency, since LMP is a known date while conception date is usually an estimate.

Ultrasound dating can adjust the initial EDD if early measurements suggest a different conception date. A 12-week ultrasound measuring fetal size equivalent to 13 weeks and 2 days might push the EDD earlier by 9 days. Later ultrasounds are less accurate for dating because fetal size varies more as pregnancy progresses. Most practitioners rely on the EDD established by first-trimester ultrasound or LMP calculation, whichever is more reliable.

Medical dosing and monitoring schedules also require precise date calculations. A patient on a 28-day chemotherapy cycle receives treatment on Day 1, Day 8, and Day 15, then has a rest period until Day 29 starts the next cycle. Missing a date by even one day can compromise treatment effectiveness or increase side effects. Antibiotic courses might require "10 days of treatment," meaning the patient takes medication for 10 consecutive days starting immediately, not skipping doses or extending beyond 10 days.

Financial Date Calculations: Interest and Bond Math

Financial institutions use multiple day-count conventions for calculating interest accrual, each producing slightly different results. The most common conventions include Actual/360 (actual days divided by 360-day year, used for U.S. commercial loans and short-term money markets), Actual/365 (actual days divided by 365-day year, used for many non-U.S. markets), 30/360 (assumes 30-day months and 360-day years, used for corporate bonds), and Actual/Actual (actual days divided by actual days in the year, used for U.S. Treasury bonds).

Consider a loan of $100,000 at 6% annual interest from February 1 to March 1 (28 days in a non-leap year). Using Actual/360: interest = $100,000 × 0.06 × (28/360) = $466.67. Using Actual/365: interest = $100,000 × 0.06 × (28/365) = $461.37. Using 30/360: interest = $100,000 × 0.06 × (30/360) = $500.00. That's a $38.63 difference for just one month — multiply that over a 30-year mortgage and the choice of convention significantly affects total interest paid.

Bond accrued interest calculations require precise day counting. If you buy a corporate bond halfway between coupon payment dates, you must pay the seller accrued interest for the days they held the bond since the last payment. A bond with semiannual coupons (paid every 182-183 days) bought 91 days after the last coupon would include approximately half a coupon's worth of accrued interest in the purchase price. Settlement conventions (T+1, T+2, T+3) further complicate matters, as the settlement date, not trade date, determines ownership for interest accrual.

Credit card companies typically calculate daily interest using Actual/365 or Actual/360, meaning your balance is multiplied by the daily periodic rate for each day you carry a balance. If your APR is 18% and the company uses Actual/365, the daily rate is 0.18/365 = 0.0493%, applied to each day's balance. Over 30 days with an average balance of $5,000, interest is approximately $74.05. This is why paying off balances mid-cycle reduces interest — fewer days mean less accrual.

Common Mistakes in Date Difference Calculations

❌ Mistake #1: Inclusive vs. Exclusive Counting

Problem: Calculating January 1 to January 10 as "10 days" when it's actually 9 days (exclusive) or 10 days (inclusive) depending on whether you count both endpoints.

Solution: Always clarify whether the end date is included. "From January 1 through January 10" = 10 days. "From January 1 to January 10" often means 9 days (not including the 10th). Legal and contract language usually specifies this.

❌ Mistake #2: Assuming All Months Have 30 Days

Problem: Calculating "3 months" as exactly 90 days. January to April is actually 90 days (31+28+31), but February to May is 89 days (leap year) or 90 days (non-leap year).

Solution: Use actual calendar months, not day approximations. Software and calculators handle variable month lengths automatically. When contracts specify "30 days notice," use 30 calendar days, not 1 month.

❌ Mistake #3: Ignoring Time Zones

Problem: Calculating date difference without specifying time zones. A contract deadline of "February 28" could mean February 28 at 11:59 PM Hawaii time (still February 28) or March 1 at 5:00 AM UTC.

Solution: For international agreements, always specify time zones. Use UTC (Coordinated Universal Time) as a neutral reference, or clearly state "February 28, 2026 at 11:59 PM Pacific Time."

❌ Mistake #4: Business Days vs. Calendar Days Confusion

Problem: A "5-day shipping window" could mean 5 calendar days (including weekends) or 5 business days (Monday-Friday only). That's potentially a 2-day difference.

Solution: Always check if "days" means calendar days or business days. Legal documents typically specify "calendar days" or "business days" explicitly. When in doubt, ask for clarification before agreeing to deadlines.

Date Difference Examples — Step by Step

Exact answers for the most commonly searched date range questions.

How many days between January 1 and December 31?

364 days (or 365 days in a leap year, if both dates fall in the same leap year).

Jan 1 → Dec 31 (non-leap year): 364 days
Jan 1, 2024 → Dec 31, 2024 (leap year): 365 days
Jan 1 → Dec 31 (inclusive, non-leap): 365 days

Note: "From Jan 1 to Dec 31" = 364 days (exclusive of end date). "Jan 1 through Dec 31" = 365 days because you count both the first and last day. This is a common source of off-by-one errors.

How many days between January 1 and June 30?

180 days (non-leap year) or 181 days (leap year).

January: 31 days
February: 28 days (non-leap) / 29 days (leap)
March: 31 days
April: 30 days
May: 31 days
June 1–30: 29 days (not counting Jan 1)
Total: 31 + 28 + 31 + 30 + 31 + 29 = 180 days

How to calculate weeks between two dates

Divide the total number of days by 7. The quotient is complete weeks; the remainder is leftover days.

Example: Jan 1, 2026 → Mar 31, 2026

Step 1: Count total days = 89

Step 2: 89 ÷ 7 = 12 weeks and 5 days

Answer: 12 weeks, 5 days

Check: 12 × 7 + 5 = 84 + 5 = 89 ✓

How many business days in a month?

A typical month has 20–23 business days depending on the month and how weekends fall.

Month (2026)Calendar DaysBusiness Days
January3122
February2820
March3122
April3022
May3121
June3022

Business days exclude Saturdays and Sundays. Holidays are not included in this count.

How many days since a specific date? (Example: Jan 1, 2020)

Use the calculator above — enter the past date as Start Date and leave End Date as today. For reference:

Jan 1, 2020 → Jan 1, 2026 = 2,192 days (6 years, including 2 leap years)
Jan 1, 2023 → Jan 1, 2026 = 1,096 days (3 years)
Jan 1, 2025 → Jan 1, 2026 = 365 days (1 year)

Why Use Our Free Online Date Difference Calculator?

Manual calendar counting is error-prone and time-consuming, especially across month and year boundaries. Our free date difference calculator provides instant, accurate results for any two dates, whether in the past or future. Unlike basic calculators that only show total days, ours breaks down the difference into years, months, weeks, and days — plus hours and minutes for complete precision.

The calculator automatically handles leap years, varying month lengths, and all the edge cases that make manual calculation difficult. It shows both calendar days and business days, helping you understand both the total duration and the actual working time. The weekend day count is particularly useful for project planning, payroll, and scheduling.

Whether you need to calculate contract periods, track project milestones, plan events, verify employment duration, or simply satisfy curiosity about time spans, this tool provides professional-grade accuracy with consumer-friendly simplicity. No installation, no signup, no cost — just enter two dates and get comprehensive results immediately. Bookmark this page for quick access whenever you need reliable date calculations.

Related Calculators