About this site

A small set of date tools that are free to use, have no ads, and do not track you.

Privacy

Every calculation runs in your browser. Nothing you type is sent anywhere, and the site sets no cookies. Inputs are kept in the page address only so a result can be bookmarked or shared. The site uses Cloudflare Web Analytics, which counts page views without cookies or cross-site tracking.

Calendar arithmetic

Dates are handled as plain year, month, and day values on the proleptic Gregorian calendar (the calendar in use today, extended backward). Each date is converted to a whole day number, so subtracting two dates or adding days is exact integer math. No step uses clock time, which means daylight-saving changes and time zones cannot cause off-by-one errors in date results.

  • Leap years: years divisible by 4 are leap years, except century years, which are leap years only when divisible by 400. So 2000 was a leap year and 2100 will not be.
  • Adding months and years: the day number stays the same when the target month has it; otherwise the result is the last day of that month (January 31 + 1 month = February 28 or 29).
  • Years, months, and days between dates: the largest number of whole months that fits is counted first using the same month rule, then the remaining days. Adding the result back to the start date always returns the end date.
  • Leap-day birthdays: in common years a February 29 birthday is counted on February 28.

Time zones

The countdown converts times using the IANA time zone database (often called tzdb or the Olson database) as shipped in your browser through the standard Intl API. The list of zones comes from your browser too, with a short built-in list as a fallback for older browsers. Because the data belongs to the browser, it updates when the browser does.

U.S. federal holidays

Holidays are computed from the rules in 5 U.S.C. 6103, the federal law that names the legal public holidays, and the observance rules the U.S. Office of Personnel Management (OPM) publishes for federal employees:

  • New Year's Day (January 1), Juneteenth National Independence Day (June 19, from 2021), Independence Day (July 4), Veterans Day (November 11), and Christmas Day (December 25) have fixed dates.
  • Birthday of Martin Luther King, Jr. (third Monday in January, from 1986), Washington's Birthday (third Monday in February), Memorial Day (last Monday in May), Labor Day (first Monday in September), Columbus Day (second Monday in October), and Thanksgiving Day (fourth Thursday in November) fall on set weekdays.
  • A holiday on a Saturday is observed the Friday before; one on a Sunday is observed the Monday after.
  • Years before 1971 are not supported, because the current Monday-holiday rules began that year. From 1971 to 1977 Veterans Day was the fourth Monday in October, and the calculator follows that.

Holiday dates are calculated each time rather than copied from a table, so they work for any year. Laws can change; if Congress adds or moves a holiday, this site will need an update.

Testing

The calculation code has an automated test suite covering leap years, month-end dates, daylight-saving transitions in several zones, observed holidays (such as July 4, 2026, a Saturday, observed on Friday, July 3), and Juneteenth before and after 2021.

Sources

  • 5 U.S.C. 6103, Holidays (United States Code).
  • U.S. Office of Personnel Management, federal holidays and observance guidance (opm.gov).
  • IANA Time Zone Database (iana.org/time-zones), accessed through the browser's Intl.DateTimeFormat.