Use this date calculator to count the days between two calendar dates, shift a date by a number of days, or add hours and minutes. The day count crosses midnights. January 1 to January 31 is 30 days. Add one if you need both endpoint dates included.
Date and Time Calculator
Dates are calendar dates. An overnight clock shift treats the end time as the next day when it is earlier than the start.
Results
Daylight-saving time does not change the day count. Clock duration uses the hours you type.
The formula
Days between = the absolute difference of the two dates in whole days. Adding days moves the start date by that count, including across month and year boundaries. Negative counts move backward.
Clock addition converts both times to minutes, adds them, and splits the total back into hours and minutes. A duration from a later clock time to an earlier one adds 24 hours to the end, so 22:00 to 01:30 is 3 hours 30 minutes.
A percent of a year, or any other plain ratio, is on the percentage calculator. Converting hours into other units is on the unit converter only for length, weight, temperature, and volume, not time.
Questions
Are the days between two dates inclusive?
No. The count is the number of midnights you cross. January 1 to January 31 is 30 days, not 31. Add 1 yourself if you need a count that includes both endpoint dates.
Does the date math care about time zones?
The dates are calendar dates, not clock times. Daylight-saving transitions do not add or remove a day from the count.
How does the clock duration handle an overnight shift?
If the end time is earlier than the start, or you mark the shift as overnight, the end is treated as the next day. 10:00 p.m. to 1:30 a.m. is 3 hours 30 minutes.
Can I add months?
This page adds days, not months. Month lengths vary. Use a day count if the deadline is a number of days.