Skip to main content
DateToolsHQ

Hours Between Dates Calculator

Calculate total hours, days, and minutes between two date-times. Enter start and end dates with times for an elapsed-time total in UTC.

Enter start and end date-times to calculate hours between them.

How it works

Each date and time you enter is combined into one UTC instant. The calculator measures elapsed time from the start instant to the end instant.

Total hours uses the exact span in hours (including fractions when minutes or seconds remain). Total minutes is the full minute count. Total days shows whole days from the non-overlapping breakdown—the same style as the Date Difference Calculator (for example, 27 hours appears as 1 day and 3 hours, not 1.125 days).

The end date-time must be on or after the start. If the end is earlier, you will see a validation message instead of a result. For seconds in the breakdown or when the end is before the start, use the Date Difference Calculator.

Common uses

Payroll time spans, shift length, project timelines, deadline tracking, and any question phrased as “hours between two dates” or “time difference in hours.”

  • Payroll time spans

    Measure hours from clock-in to clock-out across one or more workdays.

  • Shift calculations

    Compare night shifts that cross midnight using start and end date-times.

  • Project timelines

    Track elapsed hours between milestone start and completion timestamps.

  • Deadlines

    See how many hours remain between now and a due date-time.

  • Elapsed time tracking

    Log total hours and minutes for billing or time sheets in UTC.

FAQ

How do I calculate hours between two dates?
Enter a start date and time and an end date and time. The calculator combines each pair in UTC and shows total hours, minutes, and a day/hour/minute summary when the end is on or after the start.
Can I include both date and time?
Yes. All four fields are required. Without times, use midnight (00:00) for a full-day boundary, or use Days Between Dates for calendar days only.
What happens if the end time is before the start time?
If the combined end instant is before the start instant, the calculator shows an error and does not display totals. Swap the values or fix the dates so the end is later.