Free · No signup · Runs in your browser

Diff Calculator
How long between two moments, exactly.

Pick two dates and get the exact duration in days, hours, minutes and seconds, with business days and full weeks counted beside it. Daylight saving is handled by real elapsed time, not by the clock faces.

No signup100% in-browserBusiness days includedDST aware
Live ToolAll processing local. No data sent.

Both dates are read in your local time zone. Times are compared as exact instants, so a daylight saving change inside the range shows up in the hour count.

Quick Answers: Diff Calculator

How the Duration Is Counted

Quick answer: Each date becomes an exact instant, the earlier is subtracted from the later, and the seconds are split into days, hours, minutes and seconds.

The tool turns each date you pick into an exact instant, measured in milliseconds since the Unix epoch, then subtracts the earlier from the later. The difference is a count of seconds, and that count is split into days of 86400 seconds, hours of 3600, minutes of 60, and the seconds left over. The total seconds, minutes and hours rows give the same difference in a single unit, for the cases where one number is easier to use than four.

An example, worked out and checked: 1 January 2026 at 00:00 to 1 March 2026 at 12:30 is 59 days, 12 hours and 30 minutes, which is 5,142,600 seconds in total, and 41 business days. January has 31 days and February 2026 has 28, since 2026 is not a leap year, so the day count is 31 plus 28, and the extra 12 hours and 30 minutes sit on top. The tool gives the same answer the moment you load the example.

Business Days, Explained

Quick answer: Weekdays only, Monday to Friday, after the start date and up to and including the end date. Holidays are not subtracted, because they differ by country.

Business days are the count most people actually want when they ask how long something takes, and they are the count most calculators get subtly wrong. The rule here is written on the results themselves, so it is never a surprise: weekdays only, Monday to Friday, counted after the start date and up to and including the end date. Friday to Monday is 1 business day, Monday to Friday of the same week is 4, and a Saturday to Sunday range is 0.

Holidays are deliberately not subtracted. A holiday calendar for one country is wrong for the next, and a global one does not exist. If your range includes a public holiday, subtract one day for each holiday inside it. For a deadline calculation, that single subtraction is the only step the tool leaves to you, and the note under the results says so every time.

Daylight Saving and the Missing Hour

Quick answer: A range over a spring-forward night is one hour shorter than the clock faces say. A range over a fall-back night is one hour longer. Both are correct.

Daylight saving is where date math quietly goes wrong. Most calculators subtract the calendar dates and report 24 hours for any two midnights one day apart. That is the clock-face answer, not the elapsed-time answer. In New York, 8 March 2026 at 00:00 to 9 March 2026 at 00:00 is 23 hours, because the clocks jump from 2 a.m. to 3 a.m. and that hour never happens. In autumn the same range is 25 hours, because the hour from 1 a.m. to 2 a.m. happens twice.

This tool compares exact instants, so it reports 23 hours for the spring case and 25 for the autumn case, in any zone that observes daylight saving. If your range sits entirely outside a clock change, the answer is the plain one. The distinction matters most for billing, for service level agreements, and for anything where an hour of difference is an hour of money.

Timestamps vs Dates: Which to Use

Quick answer: Use timestamps when the exact second matters, and dates when only the calendar day matters. Set both times to midnight for a pure day count.

Two timestamps subtract cleanly: 1715429912 minus 1715343512 is 86400 seconds, exactly one day. Two dates need a decision about the time of day first. The date picker on this page always carries a time, and the difference is measured between those two exact instants. That is why 1 January at noon to 2 January at noon is 1 day, while 1 January at noon to 2 January at 11 a.m. is 0 days and 23 hours.

If you only need calendar days, set both times to midnight before calculating. The day count then matches the number of midnights between the dates, which is the figure most people mean when they ask how many days until a deadline. The unix timestamp converter on the home page turns any date into its timestamp, so a range you already hold as timestamps can be pasted into this page as dates just as easily.

Diff Calculator FAQs

What is a timestamp difference calculator?

A timestamp difference calculator takes two moments and tells you exactly how much time sits between them, in days, hours, minutes and seconds. This one also counts business days and full weeks. Both dates are read in your local time zone, and the comparison is done on exact instants, so a daylight saving change inside the range shows up in the hour count instead of being silently ignored.

How are business days counted?

Business days are weekdays, Monday to Friday, counted after the start date and up to and including the end date. The start day itself is not counted. So Friday to Monday is 1 business day, and Monday to Friday of the same week is 4. No holiday calendar is used: if a public holiday falls inside your range, subtract it yourself. The note under the results says this every time, so the count is never mistaken for a holiday-aware one.

Does the calculator handle daylight saving time?

Yes, because it compares exact instants. Both dates are read in your local time zone, and the difference is the real elapsed time, not the difference between the clock faces. A range that covers a spring-forward night is one hour shorter than the clock faces suggest, and a range that covers a fall-back night is one hour longer. The worked example below shows the spring-forward case in New York.

What if the end date is before the start date?

The tool still works. It takes the absolute difference and says so in the note under the results, so the values are always positive and the direction is never hidden. If you need the sign, read the note: it tells you the end date came first.

How do I find the difference between two unix timestamps?

Subtract the smaller from the larger. The result is seconds, so divide by 60 for minutes, by 3600 for hours, and by 86400 for days. For example, 1715429912 minus 1715343512 is 86400 seconds, which is exactly one day. This page does the same arithmetic from dates instead, and it also handles the business day count, which plain subtraction cannot do.

Why does the same range give 23 hours instead of 24?

Daylight saving time. In New York, 8 March 2026 at 00:00 to 9 March 2026 at 00:00 is 23 hours, because the clocks jump forward at 2 a.m. and that hour never happens. The same range in a zone without daylight saving is 24 hours. This is correct behaviour, not a bug: the elapsed time really is 23 hours, even though the clock faces are one day apart.

Are public holidays counted as business days?

No. The business day count uses weekdays only, Monday to Friday, with no holiday calendar, because holidays differ by country and by year. If your range includes a holiday, subtract one day for each holiday inside it. For leave planning across several countries, that subtraction is the only step the tool leaves to you.

How do I count the days between two dates only?

Pick the two dates in the tool above and read the Days row. The day count is the number of whole 24 hour periods between the two instants, so 1 January at noon to 2 January at noon is 1 day, but 1 January at noon to 2 January at 11 a.m. is 0 days and 23 hours. If you only need calendar days with no times at all, set both times to midnight first.

Related tools

Source: the Unix epoch and the Gregorian calendar. Reference values on this page were worked out and checked in JavaScript on 27 November 2026.