Date Calculator
To count the days between two dates, subtract the earlier date from the later one. From 1 January to 31 March 2024 is 90 days, which is 2 months and 30 days, or 12 weeks and 6 days. The end date itself isn't counted.
Last updated by Ultra Calculator
Days Between Dates
How to calculate it
D = end date − start date W = whole weeks in D, with D − 7 × W days left over
- D
- total days between the dates (the end date isn't counted)
- W
- whole weeks, D ÷ 7 rounded down
- end date
- the later date
- start date
- the earlier date
Years, months and days come from the calendar: whole years first, then whole months, then the days left. With hours and minutes included, D counts whole days and the hours and minutes left over are shown separately. The weekday count includes every Monday to Friday from the start date to the end date, both included.
Worked example
1 January to 31 March 2024
90 days, or 2 months and 30 days. That is 12 weeks and 6 days, and there are 65 weekdays from 1 January to 31 March, both included.
| Start date | 1 January 2024 |
|---|---|
| End date | 31 March 2024 |
| Total days | 90 |
|---|---|
| Years | 0 |
| Months | 2 |
| Days | 30 |
| Weeks and days | 12 weeks, 6 days |
| Weekdays (Mon to Fri, both dates included) | 65 |
| Total hours | 2,160 |
| Total minutes | 129,600 |
How to use this calculator
- Pick the Start date.
- Pick the End date. Its day isn't counted, so 1 to 2 January is 1 day.
- To include the time of day, choose Include hours and minutes and type the Start time and End time on the 24-hour clock.
- Read Total days first. Below it are the same gap in years, months and days, in weeks and days, in hours and minutes, and as a count of weekdays.
Frequently asked questions
How do I count the days between two dates?
Subtract the earlier date from the later one. In Excel or Google Sheets, put the dates in A1 and B1 and use =B1-A1, formatted as a number. Like this calculator, that leaves out the end date.
Does it count the start and end dates?
Total days counts from the start date up to the end date without including the end date, so 1 to 2 January is 1 day. Add 1 if you need both days counted. The weekday figure is different: it includes both dates.
How many weeks are there between two dates?
Read the Weeks and days line. It divides the total days by 7 and shows the remainder, so 90 days is 12 weeks and 6 days.
How are months worked out?
By the calendar. The calculator counts whole months from the start date's day of the month, then the days left. Because months are 28 to 31 days long, 2 months can be anything from 59 to 62 days.
Does it skip bank holidays?
No. Weekdays are simply Monday to Friday. Take off any bank holidays yourself, or use the working days calculator, where you can enter a number of holidays to subtract.
Can it add days to a date?
No. This calculator finds the gap between two dates you already know. It doesn't add or subtract a number of days from a date.
Learn more
Calendar months vary in length
A month can be 28, 29, 30 or 31 days, so a gap in months and days depends on which months it covers. 31 days from 1 January is 1 February, but 31 days from 1 February is 4 March in a normal year.
Counting with or without the end date
Total days is the difference between the dates, the way you would count nights in a hotel. If you need every calendar day from the first to the last, as in a holiday from Monday to Friday, add 1.
Weekdays
The weekday figure counts Mondays to Fridays from the start date to the end date, including both. It doesn't know about bank holidays, which you need to subtract yourself.
- Counting the days until a holiday, wedding or other event
- Working out how long you've been in a job
- Checking the length of a notice period or contract
- Finding how many weeks are left before a deadline
- Counting the weekdays in a project window
Forgetting whether the end date counts
Total days leaves the end date out. For an inclusive count, such as days of leave from Monday to Friday, add 1.
Treating every month as 30 days
Months are 28 to 31 days long. Use the years, months and days figures when you need calendar months.
Assuming weekdays leave out bank holidays
The weekday count only skips Saturdays and Sundays. Subtract any bank holidays in the range yourself.
Methodology and sources
Dates are treated as whole calendar days, so your time zone can't move them. Total days is the end date minus the start date, so the end date isn't counted, and Weeks and days divides that total by 7. Years and months follow Excel's DATEDIF: a month counts once the day of the month reaches the start day. The days are counted from the last whole month, moved to the month's last day when it is shorter, so 31 January to 1 March 2024 is 1 month and 1 day. With times included, every day counts as 24 hours, ignoring clock changes, and an end time earlier in the day leaves the last day incomplete. The weekday count includes both dates and skips Saturdays and Sundays only.