Days Between Dates Calculator
Calculate the number of days, weekdays, and weekends between two dates
Quick Date Presets
Calculation Options
📅 How to Calculate Days Between Dates
Total Days Calculation
Counts every calendar day between two dates, including both start and end dates.
Weekdays Only
Excludes Saturdays and Sundays. Perfect for calculating work days or business timelines.
Business Days
Same as weekdays (Monday through Friday). Useful for project planning and delivery estimates.
Weekends Only
Counts only Saturdays and Sundays. Helpful for vacation planning or weekend events.
📊 Calculation Examples
| Start Date | End Date | Total Days | Weekdays |
|---|---|---|---|
| Jan 1, 2024 | Jan 10, 2024 | 10 days | 8 weekdays |
| Monday | Friday (same week) | 5 days | 5 weekdays |
| Friday | Monday (next week) | 4 days | 1 weekday |
| Dec 25, 2024 | Jan 1, 2025 | 8 days | 5 weekdays |
🔢 Date Calculation Formulas
Basic Date Difference Calculation
const start = new Date(startDate);
const end = new Date(endDate);
const diffTime = Math.abs(end - start);
const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));
// Add 1 to include both dates
const totalDays = diffDays + 1;
The calculation accounts for leap years and varying month lengths automatically.
❓ Frequently Asked Questions
A: Yes, both the start date and end date are included in the total count by default. This is the most common method for calculating days between dates.
A: Weekends are Saturday and Sunday. Some countries have different weekend days, but this calculator uses the international standard.
A: This calculator doesn't exclude specific holidays. For business days calculation, it only excludes weekends (Saturday and Sunday).
A: Yes! Use the "Today" preset for the start date, then select your future end date. The calculator works for past, present, and future dates.