Date & Time

Date Calculator

This date calculator finds how many days are between two dates (the date difference), or adds and subtracts days, weeks, months and years from a date.

Try
Calculation

Blank uses today’s date on your device, for “days until” a date.

Count both the start and the end date (adds 1 day).

Result

Days between the dates: 358 days

Days between the dates

358days

Years, months and days
11 months, 24 days
Weeks and days
51 weeks, 1 day
Business days (Monday to Friday)
256
Weekend days
102
Total hours
8,592
Total minutes
515,520
Total seconds
30,931,200
Start date
Thursday, January 1, 2026
End date
Friday, December 25, 2026

From Thursday, January 1, 2026 to Friday, December 25, 2026 is 358 days: 11 months, 24 days, of which 256 are weekdays.

The count runs from the start date up to, but not including, the end date, so March 1 to March 2 is 1 day. Tick "Include end date" to count both dates.

Business days are Monday to Friday; public holidays are not removed. Hours assume 24-hour days (no daylight-saving changes).

Step-by-step working (3 steps)
  1. Count the calendar days

    Each date is converted to a day number in the Gregorian calendar; the difference is 358 days.

  2. Break the span into months and days

    Step forward whole months from the earlier date (keeping the day of the month, or the month’s last day when it does not exist), then count the days left: 11 months, 24 days.

  3. Count weekdays

    51 full weeks contain 255 weekdays; the remaining 1 day adds 1.

The day count is the end date minus the start date; tick "Include end date" to count both days (it adds 1). Results include business days, weeks and a years, months and days breakdown.

By Hira Noor, mathematicianLast reviewed Free, no sign-up, runs in your browserReport a problem

How to use this calculator

  1. Choose Days between two dates to measure a span, or Add or subtract from a date to find a new date.
  2. For a span, enter the start and end dates, or leave the start date blank to count from today. Tick Include end date if both days should count, for example for a booking or a leave period that covers both the first and the last day.
  3. To shift a date, enter it, choose Add or Subtract, and fill in any mix of years, months, weeks and days (whole numbers; leave the others at 0). For "90 days from today", leave the date blank and enter 90 in Days.
  4. Read the result at the top. The list below it shows the weekday, business days, weekend days and totals in weeks, hours, minutes and seconds. Open the working to see each step.

Formulas

Days between dates

days=N(end)−N(start);(+1 if the end date is included)\text{days} = N(\text{end}) - N(\text{start}) ; (+1 \text{ if the end date is included})

Plain-text formula: days = N(end) − N(start);(+1 if the end date is included)

N is a day number: the count of days since a fixed starting date in the Gregorian calendar, like the Julian day number astronomers use. Subtracting day numbers gives exact differences across months, years and leap days.

Adding days to a date

new date=date with day number N(start)±days\text{new date} = \text{date with day number } N(\text{start}) \pm \text{days}

Plain-text formula: new date = date with day number N(start) ± days

Weeks are 7 days each. Years and months are added first on the calendar (12 months per year), then weeks and days, so the result does not depend on how long each month is.

Gregorian leap years

leap⇔(ymod4=0 and ymod100≠0) or ymod400=0\text{leap} \iff (y \bmod 4 = 0 \text{ and } y \bmod 100 \ne 0) \text{ or } y \bmod 400 = 0

Plain-text formula: leap ⇔ (y mod 4 = 0 and y mod 100 ≠ 0) or y mod 400 = 0

So 2024 and 2000 were leap years, while 1900 and 2100 are not. A common year has 365 days, a leap year 366.

Month-end rule

day=min(d,days in the target month)\text{day} = \min(d, \text{days in the target month})

Plain-text formula: day = min(d, days in the target month)

Adding months keeps the day of the month when it exists. Otherwise the result is the last day of the shorter month: 31 January + 1 month = 28 February (29 in a leap year).

Reading the result

By default the count excludes the end date, the way a calendar measures elapsed time: from Monday to Friday of the same week is 4 days. With "Include end date" it is 5, the number of dates on the calendar from Monday through Friday.

The years, months and days breakdown steps forward whole months from the earlier date and then counts the leftover days, using the month-end rule. Because months have different lengths, "1 month" can be 28 to 31 days, so the breakdown is not a fixed conversion of the day total.

Business days count every Monday to Friday in the span. Public holidays differ by country and year, so subtract the ones that apply to you (the 2027 US federal holidays are listed below).

How to calculate the days between two dates by hand

To find how many days are between two dates by hand, count the days left in the start month, add the full length of every month in between, then add the day of the month of the end date. This counts up to but not including the end date; add 1 if both dates should count.

From March 15, 2026 to July 4, 2026:

Days from March 15 to July 4, 2026, counted month by month
Part of the spanHow it is foundDays
Rest of March31 − 1516
AprilFull month30
MayFull month31
JuneFull month30
July up to the 4thDay of the month4
Total16 + 30 + 31 + 30 + 4111

Should you include the end date?

Whether to count the end date depends on what is being counted. Elapsed time, nights and age count the gaps between dates, so leave the box unticked. Days of attendance, leave or a booking that covers both the first and last day count the dates themselves, so tick it. The two answers always differ by exactly 1.

Court deadlines in the United States follow their own rule. Under Federal Rule of Civil Procedure 6(a), you exclude the day of the event that starts the period, count every day including weekends and holidays, and include the last day; if the last day is a Saturday, Sunday or legal holiday, the period runs to the next day that is not one. Adding the days here gives the unadjusted date. State courts and other countries can use different rules, so check the one that applies.

When to count the end date
What you are countingInclude end date?Example
Time elapsed, or days until an eventNoMarch 1 to March 31 is 30 days
Hotel or rental nightsNoCheck in June 10, check out June 14: 4 nights
Days of a trip, leave or eventYesJune 10 to June 14 is 5 days
Every date in a monthYesMarch 1 to March 31 is 31 days
A deadline “30 days after” a dateNoAdd 30 days to the start date

30, 60 and 90 days from a date

Notice periods, return windows, payment terms and probation periods are usually stated in days. To add days to a date, or subtract days to count back from a deadline, use Add or subtract from a date with the number in Days; leave the date blank to count from today. The table shows the result for a start date of Friday, January 15, 2027. Note that 30 days is not the same as 1 month: January 15 + 1 month is February 15, while January 15 + 30 days is February 14.

Common intervals from Friday, January 15, 2027
Days addedDateWeekday
7January 22, 2027Friday
14January 29, 2027Friday
30February 14, 2027Sunday
45March 1, 2027Monday
60March 16, 2027Tuesday
90April 15, 2027Thursday
120May 15, 2027Saturday
180July 14, 2027Wednesday
365January 15, 2028Saturday

Business days and public holidays

The business-day count includes every Monday to Friday and removes Saturdays and Sundays. It does not remove public holidays, because they vary by country, state and employer. To get working days, subtract each holiday that falls on a weekday inside your span.

For the United States, these are the federal holidays as observed in 2027. When a holiday falls on a Saturday it is observed on the Friday before, and on a Sunday the Monday after. New Year’s Day 2028 is a Saturday, so it is observed on Friday, December 31, 2027. 2027 has 261 weekdays; taking away these 11 holidays and December 31 leaves 249 federal working days.

US federal holidays observed in 2027
HolidayDate observedWeekday
New Year’s DayJanuary 1Friday
Birthday of Martin Luther King, Jr.January 18Monday
Washington’s BirthdayFebruary 15Monday
Memorial DayMay 31Monday
Juneteenth National Independence DayJune 18 (June 19 is a Saturday)Friday
Independence DayJuly 5 (July 4 is a Sunday)Monday
Labor DaySeptember 6Monday
Columbus DayOctober 11Monday
Veterans DayNovember 11Thursday
Thanksgiving DayNovember 25Thursday
Christmas DayDecember 24 (December 25 is a Saturday)Friday

Days between dates in Excel or Google Sheets

Spreadsheets store dates as day numbers, so with the start date in A2 and the end date in B2, =B2-A2 or =DAYS(B2, A2) gives the days between them, matching this calculator with the end date not included. =NETWORKDAYS(A2, B2) counts weekdays and includes both dates, and takes an optional range of holidays as a third argument.

To add days, use =A2+30. To add months with the same month-end rule as this calculator, use =EDATE(A2, 1), and =WORKDAY(A2, 10) gives the date 10 working days later. For age in years, months and days, use the age calculator; for hours and minutes, the time calculator.

Worked example

Days from New Year to Christmas

How many days are there from January 1, 2026 to December 25, 2026, and how many are weekdays?

  1. January 1, 2026 is a Thursday and December 25, 2026 is a Friday.
  2. The difference in day numbers is 358, so there are 358 days (the end date not included).
  3. Stepping forward 11 whole months from January 1 reaches December 1; 24 more days reach December 25.
  4. 358 days are 51 weeks and 1 day: 51 × 5 = 255 weekdays plus 1 more for the extra Thursday, so 256 business days.

Answer: 358 days: 11 months and 24 days, or 51 weeks and 1 day, with 256 business days. Including December 25 makes it 359 days and 257 business days.

Frequently asked questions

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

Subtract the earlier date from the later one: count the days left in the start month, add the length of each full month in between, then add the day of the month of the end date. March 15 to July 4, 2026 is 16 + 30 + 31 + 30 + 4 = 111 days. Add 1 if both dates should be counted.

What is the formula for the days between two dates?

Days = end date − start date, where each date is turned into a day number on the calendar. Add 1 to count the end date too. In Excel or Google Sheets the same formula is =B2-A2 or =DAYS(B2, A2).

How do I add 30 days to a date?

Choose "Add or subtract from a date", enter the date and type 30 in Days. By hand, subtract the days left in the current month from 30 and carry the rest into the next month: January 15 + 30 days is February 14, because January has 16 days after the 15th and 14 more reach February 14.

How many days until a date?

Choose "Days between two dates", leave the start date blank so it uses today, and enter the target date as the end date. The result is the number of days from today until that date, with the weekdays and weeks; tick "Include end date" if the day itself should count.

Does the day count include the start date and the end date?

It counts from the start date up to but not including the end date, so March 1 to March 2 is 1 day. Tick "Include end date" to count both dates, which adds 1.

Is 30 days the same as one month?

No. A month is 28 to 31 days, so adding 1 month keeps the day of the month (January 15 to February 15 is 31 days), while adding 30 days can land on a different day. Use the unit the contract or rule states.

What is 31 January plus one month?

February 28, or February 29 in a leap year. When the day does not exist in the target month, the calculator uses that month’s last day. Adding another month then gives March 28, not March 31.

Are public holidays excluded from business days?

No. Business days are every Monday to Friday. Holidays vary by country, region and year, so subtract the ones that fall on weekdays in your span. The 2027 US federal holidays are listed on this page.

Does daylight saving time affect the result?

No. The calculator works with calendar dates only, never clock times or time zones, so a daylight-saving change cannot add or remove a day. Total hours assume 24-hour days.

Which dates are supported?

Any date from January 1 of year 1 to December 31, 9999, in the Gregorian calendar. Dates before 1582 are extended backward with the same rules (the proleptic Gregorian calendar).

Age Calculator

How old you are in years, months and days, with totals, decimal age, your next birthday and birth weekday.

Date & Time

Time Calculator

Add and subtract hours, minutes and seconds, add up a list of times, or find the time between two times.

Date & Time

Unit Converter

Convert between units in 40 categories with exact factors, formulas and tables.

Tools

Scientific Calculator

Type or tap expressions with exact fractions, memory, variables, constants and complex mode.

Tools

Sources and further reading

  1. Calendrical Calculations: The Ultimate Edition (E. M. Reingold and N. Dershowitz), 4th ed., Cambridge University Press
  2. chrono-Compatible Low-Level Date Algorithms (H. Hinnant) (opens in a new tab), Howard Hinnant
  3. Federal holidays (opens in a new tab), U.S. Office of Personnel Management
  4. Federal Rules of Civil Procedure, Rule 6: Computing and extending time (opens in a new tab), Legal Information Institute, Cornell Law School
  5. NETWORKDAYS function (opens in a new tab), Microsoft Support

Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?