Date Calculator

Free date calculator: find the number of years, months, weeks and days between two dates, or add and subtract time from a date. Business-day counting, weekday, day-of-year and leap-year facts included.

https://hexacalculator.com/calculators/daily/general/date-calculator

Daily

General

Date Calculator

Free date calculator: find the number of years, months, weeks and days between two dates, or add and subtract time from a date. Business-day counting, weekday, day-of-year and leap-year facts included.

Date Calculator

What do you want to do?

Start date

End date

Count the years, months, weeks and days between the two dates.

Include the end date (count it as a full day)

Adds one day so both the start and end date are counted.

From Thursday, January 1, 2026 to Thursday, December 31, 2026 is 0 years, 11 months, 4 weeks, 2 days.

That's 11 full months, or 52 weeks and 0 days, or 364 days in total.

Full years
Full months
Full weeks
Business days
Weekend days

Thursday, January 1, 2026 is a Thursday. It is day 1 of 365, in ISO week 1, quarter 1. That month has 31 days.

Loading calculator…

A date calculator has two common uses. It can calculate the time between two dates in years, months, weeks and days or it can add or subtract a period of time from a given date to find out what date will result. After selecting the mode and entering the data, the results panel is immediately updated according to the values entered.

Using the date calculator tool:

Select the operation to perform above. For "Number of days between two dates", enter a start and end date to get the total number of days, weeks, months, and working days between them. For "Add or subtract time span from a date", enter a starting date and a time span to get the resulting date and day of week.

For each date, information such as the day of week, day of year, ISO week number, quarter and whether it is a leap year are also shown. This information is updated in real time in both modes based on the input of the start date.

Number of days between two dates:

Calculating the time interval between two dates may seem simple but there are different ways to do it. In a normal calculation, the end date is not included. For example, January 1st to January 31st is 30 days. This is because you are counting the number of nights, rather than including both endpoints. This rule is used when calculating age or how long something has been going on for.

When measuring the length of an event (such as a hotel stay, project or rental period), you usually want to include both endpoints. If you turn on "Include end date", one day is added so that for example a booking from Monday through Friday will show up as 5 days instead of 4.

The results can be presented in three ways and you can choose the one that is most suitable for you: total number of days, representation in years, months, weeks and days or separate display of the sum for each unit. The panel also shows the number of weekdays and weekend days within this period.

From

To

Days

As a duration

Jan 1, 2026

Jan 31, 2026

30

1 month (exclusive)

Jan 1, 2026

Dec 31, 2026

364

11 months, 4 weeks, 2 days

Feb 28, 2024

Mar 1, 2024

2

crosses the Feb 29 leap day

Add or subtract date ranges

To find future or past dates, first set a reference date and then enter any combination of years, months, weeks and days to add or subtract. This is often used for setting deadlines. For example, contracts may say "90 days from today" while post-op checkups might be "6 weeks after surgery". The tool will return the exact date and corresponding day of the week.

Years and months are added according to the calendar, which is especially important at the end of a month. If you add one month to 1/31, it will be the last day of February, which is either the 28th or the 29th in a leap year. The 2/31 does not exist. A week consists of seven days, and if you specify a number of days, the date on the calendar will move forward one day at a time.

Start

Operation

Result

Jan 15, 2026

+ 3 months

Apr 15, 2026

Jan 31, 2026

+ 1 month

Feb 28, 2026 (clamped)

Jul 4, 2026

+ 100 days

Oct 12, 2026

Jul 4, 2026

− 2 weeks

Jun 20, 2026

Weekdays and holidays

Business days are Monday through Friday. When the "Calculate only business days" option is selected, Saturdays and Sundays are skipped when adding or subtracting. If you count five business days from a Monday, you will arrive at the following Monday, not Wednesday. In difference mode, the panel displays the number of business days and weekend days within the specified range.

While this tool excludes weekends, it does not account for holidays as these vary by country and employer. If an accurate calculation of business days is required, you may need to make manual adjustments by subtracting any holidays within the date range that fall on a business day. Below is a list of US federal holidays for the next two years for reference.

2026 U.S. federal holiday

Date

New Year's Day

Jan 1, 2026

Martin Luther King Jr. Day

Jan 19, 2026

Presidents' Day

Feb 16, 2026

Memorial Day

May 25, 2026

Juneteenth

Jun 19, 2026

Independence Day

Jul 4, 2026

Labor Day

Sep 7, 2026

Columbus Day

Oct 12, 2026

Veterans Day

Nov 11, 2026

Thanksgiving

Nov 26, 2026

Christmas

Dec 25, 2026

Calculating months, weeks and years:

The year-month-day breakdown is done by successively subtracting complete units. First a full year is subtracted, then a full month and finally a full week, leaving the remaining days. Because each stage is only completed when the actual calendar day is reached, different month lengths and leap years are taken into account so that the sum of all parts always leads to the correct end date.

This is different from an estimate using fixed periods of time where each month is considered to have 30 days and each year is considered to have 365. Both approaches are useful. The calendar split is good for answering questions like "How old am I?" or "How far apart in time are these two dates?" while a simple count of days is good for calculating interest, notice periods, and transit times.

A brief history of the Gregorian calendar.

The current calendar is the Gregorian Calendar. It was improved from the Julian Calendar which was introduced by Julius Caesar in 46 BCE and set a year to be 365 days with an extra day added every four years. This rule was fairly accurate but not perfect. The Julian Year was about 11 minutes longer than a solar year, so by 1582 the calendar had already drifted ten days from the seasons.

Pope Gregory XIII corrected this discrepancy in the year 1582 by skipping ten days. He made October 15 the day after October 4. Also he tightened up the rules for leap years. Under the Gregorian calendar, a year is a leap year if it is divisible by 4 but century years are only leap years if they are also divisible by 400. So the year 2000 was a leap year while the years 1900 and 2100 will not be leap years. This change reduced the error from one day every 128 years to one day every 3,030 years. For this reason, more than four centuries later, this calendar still matches up with the seasons.

Note:

If possible start with the earlier date. Even if you enter dates in reverse order, the tool will work correctly and give a duration as a positive number. Use the "Include end date" switch when calculating the length of an event, and disable it when calculating age or time period. Note that for deadlines on working days, you must account for holidays yourself.

This tool is for general planning and educational purposes only. Please verify results with the appropriate authorities when it comes to legal deadlines, contracts or medical appointments as they may be calculated according to rules that start on day one, do not take into account holidays, or roll over to the next business day.

Frequently asked questions

How many days are between two dates?

When you select a start and end date, the tool will calculate the total number of days between them. By default, the end date is not included in the calculation. This is the method used to calculate age. For example, from January 1st to January 31st is 30 days, not 31. If you select the "Include End Date" option, then the last day will be included in the calculation. This method can be useful for measuring the length of time between two events, such as a trip that starts on Monday and ends on Friday (5 days).

How do I add or subtract days, weeks, months or years to a date?

Go to the "Add or subtract a time period from date" mode, select desired operation (addition or subtraction) and enter any combination of years, months, weeks and days. The tool will return resulting date as well as corresponding day of week. As months are added according to calendar, adding one month to January 31st will result in the last day of February and never a March date.

Does the tool also calculate working days?

Yes. If you select the "Calculate only weekdays" option in addition/subtraction mode, calculations will be done in whole working days, skipping Saturdays and Sundays. In difference mode, the result area will show how many days between the two dates are weekdays and how many are weekend days. Holidays are not automatically excluded; only weekends are ignored.

How are months and years calculated?

A full month and a full year are not calculated by fixed intervals of 30 or 365 days but based on the calendar. The result "1 year, 2 months, 3 days" is obtained by first subtracting one full year, then adding one full month, and finally adding the remaining days. Thus, the sum of the days in each month will always exactly match the end date, regardless of how many days each individual month has.

Why are days of the week and leap years important?

Depending on the day of the week, it is possible to determine whether a particular date is a weekday or weekend, which can affect deadlines and delivery times. Since leap years include February 29, periods that span such a year are one day longer than comparable periods in non-leap years. The tool takes into account leap years and provides an accurate count of days, so there are no unexpected issues due to these special cases.

What calendar does the tool use?

We use the Gregorian calendar which has been the world's standard calendar since its inception in 1582 replacing the Julian calendar. The dates are processed in a manner that is not dependent on any fixed time zone, so no matter where you are located, the same start and end date will always produce the same result.

Related calculators

Business Days CalculatorCount the working days between two dates, or find the date a set number of business days away. Excludes weekends and the public holidays of the US, UK, Canada and Australia, handles substitute days, and supports six-day, four-day and Friday-Saturday working weeks.
Time CalculatorAdd or subtract time in days, hours, minutes and seconds, or add and subtract time from a date to get a new date and clock time. Handles carrying, negative results, 12/24-hour clocks and unit conversions.
Age CalculatorFind your exact age from a date of birth in years, months and days, plus total weeks, days, hours, minutes and seconds. Shows the day you were born, days to your next birthday, leap-year facts and your zodiac signs, and can work back from a known age to a date of birth.
Add Time CalculatorAdd up a list of times. Enter each duration as hours, minutes and seconds and get the total in h:m:s, decimal hours, days, and the average per entry — with the carrying done for you.
Birthday Paradox CalculatorFind the chance that two people in a group share a birthday, the group size needed for a target chance, or the odds someone shares your specific date, with the exact formula, a growth chart, and worked examples.
Anniversary CalculatorFind out how long you have been married or together in years, months and days, when your next anniversary falls and which one it is, and the traditional and modern gift for the year ahead. Works for wedding, relationship, work and other anniversaries.

Disclaimer: This calculator is provided for general informational and educational purposes only. Our calculators are under active development, and results may be inaccurate, incomplete, or unsuitable for your situation. Always verify the figures independently and seek advice from a qualified professional before relying on them. We make no warranties and accept no liability for any loss or decision arising from use of this tool.

References

  1. Wikipedia — Gregorian calendar

    History and leap-year rules of the modern civil calendar.

  2. Wikipedia — ISO week date

    The ISO 8601 week numbering this calculator reports.