Date Calculator
Count the days between two dates, with weeks, months, years and business days. Add or subtract days, weeks, months or years and see the day of the week.
How the days between two dates are counted
The calculator counts the number of midnights you cross between the start date and the end date, which is the same as subtracting one date from the other. From Jan 1, 2027 to Dec 31, 2027 is 364 days. The start date is counted and the end date is not, the way you would count nights in a hotel.
Sometimes you want both ends counted: a vacation that runs from Monday, March 1, 2027 through Friday, March 5, 2027 is 4 days by subtraction, but you are away for 5 days. Tick Include the end date and the calculator adds that day, so Jan 1, 2027 to Dec 31, 2027 becomes 365 days. The inclusive count is always one more than the difference.
Days including the end date = end date โ start date + 1
Years, months and days: the rule this calculator uses
Days and weeks are exact, but months have 28 to 31 days, so "one month" needs a rule. This calculator uses the calendar rule: adding a month keeps the same day of the month, and if the next month is too short, the result is that month's last day.
- Jan 31, 2027 + 1 month = Feb 28, 2027, because February 2027 has only 28 days.
- Jan 31, 2028 + 1 month = Feb 29, 2028, because 2028 is a leap year.
- Aug 31, 2027 โ 6 months = Feb 28, 2027.
- Adding 2 months at once is not always the same as adding 1 month twice: Jan 31, 2027 + 2 months = Mar 31, 2027, but + 1 month + 1 month = Mar 28, 2027, because the first step already moved to the 28th.
Differences work the same way in reverse. The calculator counts how many whole months fit, then the leftover days. Jan 31, 2027 to Feb 28, 2027 is 1 month, and Jan 31, 2027 to Mar 1, 2027 is 1 month, 1 day. A longer example: Mar 15, 2027 to Aug 4, 2029 is 2 years, 4 months, 20 days, or 873 days, or 124 weeks and 5 days.
Because months vary, a month is not a fixed number of days. February 1 to March 1 is one month of 28 days in 2027, while July 1 to August 1 is one month of 31 days. If a contract or deadline says "30 days", count days, not months.
Leap years
A year has 366 days, with February 29, when it is divisible by 4, except that century years must also be divisible by 400. That keeps the calendar in step with the seasons.
| Year | Leap year? | Days in year | Days in February |
|---|---|---|---|
| 1900 | No | 365 | 28 |
| 2000 | Yes | 366 | 29 |
| 2024 | Yes | 366 | 29 |
| 2027 | No | 365 | 28 |
| 2028 | Yes | 366 | 29 |
| 2100 | No | 365 | 28 |
Leap days are counted automatically: Feb 1, 2028 to Mar 1, 2028 is 29 days. Under the month rule, Feb 29, 2028 + 1 year = Feb 28, 2029, since 2029 has no February 29. To work out an exact age from a birth date, the age calculator is built for that.
Business days and federal holidays
Business days are Monday through Friday. Weekends are always skipped; tick the holiday box to skip US federal holidays too. When a federal holiday falls on a Saturday it is observed on the Friday before, and when it falls on a Sunday it is observed on the Monday after; the calculator uses the observed dates. Here are the observed federal holidays in calendar year 2027:
| Holiday | Date | Observed |
|---|---|---|
| New Year's Day | Friday, January 1, 2027 | Same day |
| Birthday of Martin Luther King, Jr. | Monday, January 18, 2027 | Same day |
| Washington's Birthday (Presidents Day) | Monday, February 15, 2027 | Same day |
| Memorial Day | Monday, May 31, 2027 | Same day |
| Juneteenth National Independence Day | Saturday, June 19, 2027 | Friday, June 18, 2027 |
| Independence Day | Sunday, July 4, 2027 | Monday, July 5, 2027 |
| Labor Day | Monday, September 6, 2027 | Same day |
| Columbus Day | Monday, October 11, 2027 | Same day |
| Veterans Day | Thursday, November 11, 2027 | Same day |
| Thanksgiving Day | Thursday, November 25, 2027 | Same day |
| Christmas Day | Saturday, December 25, 2027 | Friday, December 24, 2027 |
| New Year's Day | Saturday, January 1, 2028 | Friday, December 31, 2027 |
2027 has 261 weekdays. Taking out 12 observed holidays leaves 249 business days. There are 12 rather than 11 because New Year's Day 2028 falls on a Saturday and is observed on December 31, 2027.
Only federal holidays are built in. States, schools and employers set their own days off, and banks that follow the Federal Reserve calendar stay open on the Friday before a Saturday holiday, so check the calendar that applies to your deadline. To turn a count of working days into pay, see the salary to hourly calculator.
Adding and subtracting days, weeks, months and years
In the Add or subtract tab you can combine units, such as 1 year, 2 months and 10 days. Years and months are applied first using the month rule above, then weeks and days are added as exact days. Business days step forward one weekday at a time, never counting the start date, so 1 business day after a Friday is the following Monday. Common offsets from Friday, January 15, 2027:
| Add | Result | Calendar days later |
|---|---|---|
| 30 days | Sunday, February 14, 2027 | 30 |
| 60 days | Tuesday, March 16, 2027 | 60 |
| 90 days | Thursday, April 15, 2027 | 90 |
| 180 days | Wednesday, July 14, 2027 | 180 |
| 6 months | Thursday, July 15, 2027 | 181 |
| 1 year | Saturday, January 15, 2028 | 365 |
| 30 business days | Friday, February 26, 2027 | 42 |
| 30 business days, skipping federal holidays | Tuesday, March 2, 2027 | 46 |
Practical tips
- Deadlines: check whether the rule counts the starting day and whether a deadline that lands on a weekend or holiday moves to the next business day. Legal and contract rules differ, so read the wording.
- Day of the week: every result shows the weekday. July 4, 2027 is a Sunday, for example, so the federal holiday is observed on Monday, July 5, 2027.
- Pregnancy and cycles: due dates follow their own conventions; use the due date calculator or the ovulation calculator.
- Time zones: this tool works with whole calendar dates, so the time of day and daylight saving time never change the answer. For hours across time zones, use the time zone converter.