Date Calculator
Calculate the number of days between two dates or add and subtract days from any date.
Total Days
0
Weeks + Days
0w 0d
Approx. Months
0.0
Business Days
0
Breakdown
0y 0m 0d
How to Use the Date Calculator
This calculator has two modes. In the first tab, select a start date and an end date to find the total number of days between them. The calculator also shows weeks, approximate months, business days (Monday through Friday), and a years-months-days breakdown. In the second tab, enter a start date and a number of days. Choose whether to add or subtract those days. The calculator will show the resulting date along with its day of the week. Both tabs update instantly as you change any input value.
How the Date Calculator Works
The days-between calculation uses the millisecond difference between two dates divided by the number of milliseconds in a day to get an exact count. Weeks are the total days divided by seven. The approximate months count divides total days by 30.44, the average days per month. Business days are counted by iterating through each day and excluding Saturdays and Sundays. The add/subtract feature creates a new date by adding or subtracting the specified number of days from the start date, correctly handling month boundaries and leap years.
Practical Tips
- Use the days-between mode to count down to events like weddings, vacations, or deadlines.
- The business days count is useful for project planning, shipping estimates, and calculating work durations.
- Use the add/subtract mode to determine due dates. Enter today as the start and add the number of days for the deadline period.
- For recurring events, calculate the gap once and use the add mode to project multiple future dates.
Frequently Asked Questions
Does the business days count exclude holidays?
The business days count only excludes Saturdays and Sundays. Public holidays vary by country and region and are not excluded from the count.
How is the approximate months count calculated?
Approximate months divides the total days by 30.44, which is the average number of days in a month over a four-year cycle including leap years.
Does the calculator handle leap years?
Yes. The calculator uses standard date arithmetic that correctly accounts for leap years and varying month lengths.
Can I calculate dates far in the past or future?
Yes. The calculator works with any valid date supported by the browser, typically ranging from the year 100 to the year 9999.
What day of the week is shown?
The calculator displays the full day name (Monday through Sunday) for any resulting date in the add/subtract tab and for any date in the between tab.