Skip to content

Date & Time Tools

Work out date differences, ages, business days, countdowns, leap years and timestamp conversions.

7 tools · all free, all run in your browser

Date arithmetic is deceptively hard. Months have different lengths, leap years follow a rule with two exceptions, weeks can straddle a year boundary, and timestamps are counted from an arbitrary moment in 1970. These tools handle the awkward cases properly so you can answer practical questions — how old someone is today, how many working days remain before a deadline, or what a Unix timestamp in a log file actually means in your local time.

The leap year rule in full

A year is a leap year if it is divisible by 4, except that century years are not, unless they are divisible by 400. So 1900 was not a leap year but 2000 was. The rule exists because the Earth's orbit takes roughly 365.2422 days; adding a day every four years slightly overcorrects, and the century exceptions claw that back. The Gregorian calendar is accurate to about one day in 3,000 years, which is why the rule is fiddly rather than simple.

Counting the difference between two dates

There are two reasonable answers to how far apart two dates are, and they disagree. A calendar-aware breakdown gives years, months and days by walking the calendar, which is what people mean by age. A total-days count simply divides the elapsed time, which is what billing and deadlines usually need. Both are shown here. Business-day counts add another wrinkle: they exclude weekends, and public holidays vary so much by country and region that they must be handled separately.

Unix timestamps and the 2038 problem

A Unix timestamp counts seconds since 1 January 1970 at 00:00 UTC, ignoring leap seconds. It is timezone-independent, which is exactly why it is the standard format for logs, databases and APIs — the same instant reads identically everywhere, and only display needs localising. Systems that store it as a signed 32-bit integer overflow on 19 January 2038, the so-called Year 2038 problem; modern platforms use 64-bit values, which pushes the limit far beyond any practical horizon. Timestamps also appear in milliseconds, notably in JavaScript, which is why a value roughly a thousand times too large usually just needs dividing.

Date & Time Tools — questions

Do these tools account for time zones?
Date calculations use your browser's local timezone. The timestamp converter shows both UTC and local representations so you can see the difference explicitly.
Does the business day calculator know about public holidays?
No. It excludes weekends according to your settings, but public holidays differ by country and region, so subtract those separately for your location.
Why does the age calculator sometimes differ from another site by a day?
Differences almost always come from timezone handling or from whether the end date is counted inclusively. This tool uses your local calendar date and counts complete years, months and days elapsed.
What is an ISO week number?
Under ISO 8601 a week starts on Monday, and week 1 is the week containing the first Thursday of the year. That means 1 January can fall in week 52 or 53 of the previous year.

Other categories