Count calendar days and compare UTC timestamps correctly
Understand elapsed days, inclusive dates, birthdays and timezone offsets.
Decide what one day means
A date interval and a duration measured in hours answer different questions. Days Between Dates compares calendar dates without time-of-day values. From January 1 to January 2 the elapsed difference is one day. Including both dates gives two listed dates. Hotel nights, event attendance and contract deadlines can use different conventions, so choose the rule before using the number.
Do not silently turn calendar days into hours
A local day around a daylight-saving transition can have 23 or 25 hours. The date tools compare UTC calendar-day representations to keep the day count stable, not to measure actual elapsed hours in a city. They also include weekends and holidays. For a work deadline, consult the applicable business calendar rather than subtracting weekends manually without checking local holidays.
Read an age as a calendar decomposition
Age Calculator counts completed calendar months, clamps end-of-month anniversaries to the final available day and reports remaining days. That convention matters for birthdays on the 29th, 30th or 31st. Total days and completed years should not be compared by simply dividing by 365. The age output describes the specified convention; it does not determine legal eligibility.
Use offsets when you mean an instant
Unix time counts seconds from the UTC epoch. The instant 2024-01-01T00:00:00Z has timestamp 1704067200. The string 2024-01-01T01:00:00+01:00 refers to that same instant. Enter an explicit offset or Z when converting dates, and check whether an API supplies seconds or milliseconds before interpreting a long number. When a report combines date intervals and logs, record which fields are local calendar dates and which fields are timestamped instants. That distinction prevents a correct conversion from being used to answer the wrong question.
Try the workflow
- Days Between Dates — Count calendar days between two dates.
- Date Difference Calculator — Compare two dates in days, weeks and years.
- Age Calculator — Your age in years, months and days.
- Unix Timestamp Converter — Convert Unix time and UTC dates.
How we check calculations and correct errors · Report a problem with this guide