Date Calculator

Calculate the number of days between two dates, or add/subtract days from any date. Shows weeks, months, years, weekdays, and weekends.

How the Date Calculator Works

The Date Calculator is a versatile tool that helps you answer two fundamental time-related questions: "How many days are between two dates?" and "What date is X days from now?" Whether you are planning a project, tracking a pregnancy, counting down to a vacation, or figuring out contract deadlines, this calculator handles all the date math for you — including leap years, month boundaries, and weekday/weekend breakdowns.

The calculator operates in two modes. Mode 1: Days Between Dates takes a start date and an end date, then computes the exact difference in days, weeks, months, and years. It also counts how many of those days fall on weekdays (Monday-Friday) versus weekends (Saturday-Sunday), which is invaluable for business planning. Mode 2: Add/Subtract Days takes a starting date and a number of days to add (or subtract if negative), then shows you the resulting date along with the day of the week in both Western (CE) and Thai Buddhist Era (BE) formats.

Understanding Days Between Dates

When counting days between two dates, there is an important question: do you include both the start and end date, or just one of them? This is known as the "fencepost problem" in mathematics. If you have fence posts at positions 1, 2, 3, 4, and 5, there are 5 posts but only 4 gaps between them.

By default, our calculator counts the number of days between two dates (exclusive of the end date). This means January 1 to January 5 gives you 4 days. If you check the "Include end date" box, you get 5 days — this is useful when counting the total duration of a hotel stay (check-in day through check-out day) or the number of days of an event.

The calculation uses the Gregorian calendar, which is the standard calendar used internationally. It correctly handles all month lengths (28, 29, 30, or 31 days), leap years (every 4 years, except century years not divisible by 400), and year boundaries. The algorithm works by converting both dates to their absolute day count from a reference point, then computing the difference.

The Leap Year Rule Explained

Leap years add an extra day (February 29) to account for the fact that Earth's orbit around the Sun takes approximately 365.2422 days. The Gregorian calendar uses the following rules to determine leap years:

Rule 1: If the year is divisible by 4, it is a leap year.

Rule 2: However, if the year is also divisible by 100, it is NOT a leap year.

Rule 3: However, if the year is also divisible by 400, it IS a leap year.

This means 2024 is a leap year (divisible by 4), 1900 was NOT a leap year (divisible by 100 but not 400), and 2000 WAS a leap year (divisible by 400). Our calculator handles all these cases automatically, so you never need to worry about February 29 when calculating date differences.

Worked Examples

Example 1: Days Between Two Dates

Start: January 1, 2026 | End: December 31, 2026

Result: 364 days (52 weeks, 0 remaining days)

With end date included: 365 days (a full non-leap year)

Example 2: Counting Business Days

Start: April 1, 2026 | End: April 30, 2026

Result: 29 days total

Weekdays: 21 | Weekend days: 8

Example 3: Adding Days

Start: March 15, 2026 | Add: 90 days

Result: June 13, 2026 (Saturday)

Thai: 13 มิถุนายน 2569

Example 4: Subtracting Days

Start: July 4, 2026 | Subtract: -60 days

Result: May 5, 2026 (Tuesday)

Common Uses for a Date Calculator

1. Project Management and Deadlines

Project managers frequently need to calculate the number of working days between a project start date and a deadline. By knowing the total days and the weekday breakdown, you can allocate resources, plan sprints, and set realistic milestones. If a project has a 90-day timeline, knowing that only about 64 of those days are weekdays helps set appropriate expectations. You can also use the "Add Days" mode to determine exact due dates: "The deliverable is due 45 business days from contract signing" becomes a specific calendar date.

2. Pregnancy and Due Date Tracking

Pregnant mothers and healthcare providers use date calculators to track pregnancy milestones. A typical pregnancy lasts approximately 280 days (40 weeks) from the first day of the last menstrual period. By entering the LMP date and adding 280 days, you can estimate the due date. Similarly, each trimester has specific week ranges that can be calculated. The weekday/weekend breakdown can help plan doctor appointments around work schedules.

3. Travel Planning

When planning trips, you often need to know how many days until departure, the total length of your stay, or when to book flights and accommodations. Visa applications often require counting the exact number of days you will spend in a country. Some countries limit tourist stays to 30, 60, or 90 days, and you need to be precise to avoid overstaying. Using the date calculator eliminates guesswork and ensures compliance with visa requirements.

4. Contract and Legal Deadlines

Legal deadlines are often specified as a certain number of days from an event. "You have 30 days from the date of this notice to respond" or "The warranty period is 365 days from the date of purchase." Miscounting even a single day can have serious legal consequences. A date calculator provides an exact, reliable answer. Similarly, lease agreements, insurance claim windows, and statute of limitations periods all require precise date arithmetic.

5. Age and Birthday Calculations

How many days old are you? How many days until your next birthday? These fun calculations can be done easily with the date calculator. Enter your birth date as the start date and today as the end date to find your exact age in days. Or enter today as the start date and your next birthday as the end date for the countdown. You can also calculate someone's age in weeks, months, or years with great precision.

6. Financial and Investment Periods

Financial instruments often have specific maturity periods measured in days. A 90-day Treasury bill, a 180-day certificate of deposit, or a 365-day fixed deposit all require knowing the exact start and end dates. Interest calculations for loans and investments often use actual day counts (ACT/365 or ACT/360 conventions). Bond pricing, forward rate agreements, and options expiration all depend on precise day counting.

Weekdays vs. Calendar Days: Why It Matters

The distinction between calendar days and business days (weekdays) is crucial in many contexts. A "30-day deadline" in legal terms usually means 30 calendar days, but a "30 business day processing time" excludes weekends (and often public holidays). Knowing the difference can affect when you receive a refund, when a contract takes effect, or when an appeal deadline expires.

Our calculator shows both counts simultaneously, so you always have the full picture. In a typical 30-calendar-day period, there are approximately 22 weekdays and 8 weekend days. However, the exact numbers depend on which day of the week the period starts, which is why using a calculator is more reliable than estimating.

Note that our weekday count does not subtract public holidays, as these vary by country, state, and even employer. If you need to calculate exact business days (excluding both weekends and specific holidays), you will need to subtract the relevant holidays from the weekday count manually. For most purposes, the weekday count provides a very good approximation of business days.

Buddhist Era (BE) and Christian Era (CE) Date Support

Thailand and several other Southeast Asian countries use the Buddhist Era (BE) calendar system, where the year count is 543 years ahead of the Christian Era (CE). For example, CE 2026 corresponds to BE 2569. Our date calculator displays results in both CE and BE formats when using the Add/Subtract Days mode, making it convenient for Thai users who need to work with both calendar systems.

The BE and CE calendars share the same month and day structure (both use the Gregorian calendar), so the only difference is the year number. When you add 90 days to a date, the resulting day and month are the same in both systems — only the year number differs by the constant offset of 543.

Tips for Accurate Date Calculations

  • Double-check your year: It is easy to accidentally enter the wrong year, especially when working across the New Year boundary or converting between BE and CE.
  • Clarify "inclusive" vs. "exclusive": When someone tells you "the deadline is in 30 days," clarify whether that means 30 days from today (exclusive of today) or 30 days including today. The difference is always exactly 1 day.
  • Account for time zones: This calculator works with dates only, not times. If you are calculating across time zones, remember that a "day" may start and end at different clock times in different locations.
  • Consider holidays: Weekday counts shown here do not automatically exclude public holidays. For strict business-day calculations, subtract applicable holidays manually.
  • Use negative numbers wisely: In Add/Subtract mode, entering a negative number subtracts days. This is useful for finding past dates like "What was the date 100 days ago?"

Summary

The Date Calculator is an essential everyday tool that handles all date arithmetic with precision. Whether you need to count the days between two dates for project planning, add days to find a future deadline, or subtract days to trace back to a past event, this calculator delivers instant, accurate results. It accounts for all calendar complexities including varying month lengths, leap years, and the weekday/weekend distribution.

All calculations are performed entirely in your browser — no data is sent to any server, and no personal information is collected. Bookmark this page for quick access whenever you need reliable date math. The tool works on all devices, from desktop computers to mobile phones, and provides results in both Western (CE) and Thai Buddhist Era (BE) date formats.

FAQ

How do I calculate the number of days between two dates?

Enter a start date and an end date into the calculator, then click "Calculate." The tool will instantly show you the total number of days between the two dates, along with breakdowns in weeks, months, and years. You can choose whether to include or exclude the end date in the count. The calculator also shows how many of those days are weekdays versus weekend days.

Can I add or subtract days from a specific date?

Yes. Switch to "Add/Subtract Days" mode using the tab at the top of the calculator. Enter a starting date and the number of days you want to add (or subtract by entering a negative number). The calculator will show you the resulting date in both CE (Christian Era) and BE (Buddhist Era / Thai calendar) formats, along with the day of the week.

Does the calculator account for leap years?

Yes. The date calculator fully accounts for leap years when calculating the number of days between dates or when adding days to a date. A leap year occurs every 4 years (except for years divisible by 100, unless they are also divisible by 400). For example, February 2024 had 29 days, and the calculator handles this correctly.

What is the difference between including and excluding the end date?

When you "include the end date," both the start date and the end date are counted in the total. For example, from January 1 to January 3 with end date included gives 3 days. With end date excluded (the default), it gives 2 days. This is useful for different scenarios: include for counting duration of stays, exclude for calculating business days or age.

How are weekdays and weekends counted?

The calculator counts weekdays as Monday through Friday and weekends as Saturday and Sunday. This is useful for estimating business days, planning work schedules, or calculating project timelines. The count is based on the Gregorian calendar and does not account for public holidays, which vary by country.

Can I use this calculator with Thai Buddhist Era (BE) dates?

Yes. The result section shows dates in both Christian Era (CE) and Buddhist Era (BE / Thai: พ.ศ.) formats. The Buddhist Era year is always 543 years ahead of the CE year. For example, CE 2026 = BE 2569. This is helpful for Thai users who work with both calendar systems regularly.

How do I calculate how many days until a specific event?

Set the start date to today and the end date to your target event date. The calculator will show you the exact number of days remaining, plus how many weeks and months that represents. Common uses include counting days until a birthday, holiday, wedding, graduation, deadline, or travel date.

What is the maximum date range this calculator supports?

The calculator supports dates from year 0001 CE to year 9999 CE, covering the entire range of the Gregorian calendar. This means you can calculate date differences spanning thousands of years. For practical everyday use, the calculator handles any date range you might need, from a few days to several decades.

Related Tools