Date Calculator
Days between two dates (with business days), or a date plus or minus years, months, weeks and days.
Count the days between two dates on this page, or open one of five time and date calculators: the date calculator for date differences and adding days, the time duration calculator for the hours between two times, the time calculator for adding hours and minutes, the hours calculator for hours worked, timecards and overtime, and the age calculator for an exact age.
To add or subtract days, weeks or months from a date, open the date calculator. For hours between two times, use the time calculator.
Days between two dates (with business days), or a date plus or minus years, months, weeks and days.
Hours, minutes and seconds between two times, overnight spans, clock time plus a duration, and dates.
Add and subtract hours, minutes and seconds, add up a list of times, or find the time between two times.
Hours worked between two times minus breaks, a weekly timecard with overtime, and decimal hours for payroll.
How old you are in years, months and days, with totals, decimal age, your next birthday and birth weekday.
Find your task in the first column. Every example below is a real result from the calculator in the last column.
| Task | Example | Calculator |
|---|---|---|
| Days between two dates | 1 Jan to 25 Dec 2026 = 358 days | Date calculator |
| Business days (Monday to Friday) between two dates | 1 Jan to 25 Dec 2026 = 256 business days | Date calculator |
| Add or subtract days, weeks, months or years from a date | 90 days before 21 Oct 2026 = 23 Jul 2026 | Date calculator |
| Hours and minutes between two times | 07:30 to 16:30 = 9 h | Time duration calculator |
| Clock time plus or minus hours and minutes | 11:00 PM + 5 h = 4:00 AM the next day | Time duration calculator |
| Time between two dates and times | Mon 8:00 AM to Wed 5:30 PM = 2 days 9 h 30 min | Time duration calculator |
| Hours worked in a shift, minus an unpaid lunch | 8:00 AM to 4:30 PM, 30 min lunch = 8 h | Hours calculator |
| A night shift that crosses midnight | 10:00 PM to 6:30 AM = 8 h 30 min | Hours calculator |
| Weekly timecard with overtime over 40 hours | 44 h week = 40 h regular + 4 h overtime | Hours calculator |
| Add or subtract hours, minutes and seconds | 2 h 45 min + 1 h 30 min = 4 h 15 min | Time calculator |
| Convert hours and minutes to decimal hours | 7 h 45 min = 7.75 h | Time calculator |
| Exact age in years, months and days | Born 15 May 1990, on 21 Oct 2026 = 36 y 5 m 6 d | Age calculator |
| Next birthday and the weekday you were born | 15 May 1990 was a Tuesday | Age calculator |
To find the hours between two times, turn both into minutes after midnight, subtract, then turn the difference back into hours and minutes.
Write both times on the 24-hour clock
7:30 AM is 07:30 and 4:30 PM is 16:30.
Convert each time to minutes after midnight
Multiply the hours by 60 and add the minutes: 7 × 60 + 30 = 450 and 16 × 60 + 30 = 990.
Subtract the start from the end
990 − 450 = 540 minutes. If the answer is negative, the span crosses midnight, so add 1,440 minutes (24 hours).
Convert back to hours and minutes
Divide by 60: 540 minutes is 9 hours exactly. Any remainder is the extra minutes.
The time duration calculator does these steps for any two times, shows the subtraction column by column and shades the span on a timeline.
Working out hours worked
Subtract any unpaid break from the span. A 7:30 to 16:30 day with a 30-minute lunch is 8 h 30 min, or 8.5 decimal hours. The hours calculator takes off breaks, totals a Monday to Sunday timecard and splits out overtime and pay.
Timesheets and payroll often need hours as a decimal rather than in hours and minutes. Divide the minutes by 60 and add the result to the whole hours.
| Minutes | Decimal hours | Example |
|---|---|---|
| 6 | 0.1 | 8 h 6 min = 8.1 h |
| 15 | 0.25 | 7 h 15 min = 7.25 h |
| 20 | 0.333… | 1 h 20 min ≈ 1.33 h |
| 30 | 0.5 | 8 h 30 min = 8.5 h |
| 40 | 0.666… | 2 h 40 min ≈ 2.67 h |
| 45 | 0.75 | 7 h 45 min = 7.75 h |
Counting days across months by hand is easy to get wrong, because months have 28 to 31 days and leap years add a day. The date calculator gives each date a day number instead, a running count of days in the Gregorian calendar, and subtracts one from the other. The result is exact across any number of months, years and leap days.
Date questions have edge cases where two reasonable answers exist. These calculators use the same rule for each case, and a result notes the rule whenever it changes the answer.
| Case | Rule | Example |
|---|---|---|
| Leap years | Divisible by 4, except century years not divisible by 400 | 2000 was a leap year; 1900 and 2100 are not |
| Adding months to a month-end date | Keep the day if it exists, otherwise use the last day of the shorter month | 31 Jan 2027 + 1 month = 28 Feb 2027 |
| Birthday on 29 February | Counted on 28 February in common years | Born 29 Feb 2000: turns 27 on 28 Feb 2027 |
| Time zones and daylight saving | Not applied; every day has exactly 24 hours | A day count never gains or loses an hour |
| Supported dates | Year 1 to year 9999, Gregorian calendar | 1 Jan 0001 to 31 Dec 9999 |
Why the month-end rule matters
Adding one month and then another month does not always equal adding two months at once. 31 January + 1 month is 28 February, and 28 February + 1 month is 28 March, while 31 January + 2 months is 31 March. Add the whole period in one step when the day of the month matters.
The date calculator and age calculator convert dates to day numbers with a published algorithm for the Gregorian calendar, so no time zone or device clock setting can shift a result. The time duration calculator and time calculator are exact to the second and show every answer as hours and minutes, decimal hours, total minutes and a clock-style h:mm:ss value, and the hours calculator applies the US federal and California overtime rules to a weekly timecard.
Results are checked against hand-worked examples in automated tests, including leap days, month ends, century years and spans that cross midnight. The methodology page describes how the calculators are tested.
All five calculators are free, need no account and run entirely in your browser. To convert between units of time such as weeks, days and seconds, use the unit converter.
From 7:30 AM to 4:30 PM is 9 hours. Convert both times to minutes after midnight (450 and 990), subtract to get 540 minutes, and divide by 60.
Subtract the start time from the end time as usual. If the result is negative, add 24 hours. For example, 22:00 to 06:30 gives −15 h 30 min, and adding 24 hours gives 8 h 30 min. The hours calculator does this automatically whenever the end time is earlier than the start.
Not by default. The count is the number of days from the start date to the end date, so 1 to 2 March is 1 day. Tick "Include end date" to count both days, which adds 1.
No. Business days are every Monday to Friday in the span. Holidays vary by country, region and year, so subtract the ones that apply to you.
Yes. February has 29 days in years divisible by 4, except century years not divisible by 400. So 2000 was a leap year and 1900 was not.