Date calculator

OFFLINE · v0.2.2

How to use?

Convert Date A, or enter Date B to calculate age and elapsed time. Calculations run in your browser. Dates without a timezone use UTC; explicit offsets are honored. The address bar stores recognized dates as da and db: copy the URL to share them. Invalid or incomplete edits keep the last valid URL value; clearing a date removes its parameter.

Use YYYY-MM-DD, YYYY/MM/DD, YYYY.MM.DD, or an ISO timestamp such as 2026-11-18T12:30:45.123+01:00. ISO times accept hours and minutes, optional seconds, and up to three fractional digits. Unix timestamps accept 10-digit seconds or 13-digit milliseconds; use s:0 or ms:-1 for other lengths and negative values.

Live update is off by default. Enable it to refresh now and now() every second; disable it to freeze their last displayed values. Entering either keyword or clicking Use now() samples the current time even when live update is off. Shared URLs keep now() as a reference to the current time; live update must be enabled separately on each page load. Fixed dates do not advance. today, yesterday, and tomorrow become fixed dates at midnight UTC. The initial Date A is a snapshot of the current time. Date B is optional.

Outputs are grouped inside each copyable text box: Unix and C encodings; ISO, RFC, email and HTTP dates; regional dates and times; SQL, programming and JSON values; Windows, .NET, Apple and Chrome epochs; NTP and GPS; astronomical and Excel serial dates; and server logs, Git and iCalendar timestamps. All output uses UTC and English names. Output formats do not add new accepted input formats.

Precision remains milliseconds. Microseconds, nanoseconds and 100-nanosecond ticks are exact conversions of those milliseconds, without extra measured precision. Integer encodings show range limits; HTTP dates before 1601 are unavailable. Excel 1900 serials include its fictitious leap day (day 60), which no real date produces. GPS and the GPS-era TAI approximation use a leap-second table whose last effective entry is 2017-01-01; later values assume no additional leap seconds. Browser dates cannot represent leap seconds.

Date calculator

Refresh now and now() every second. Off by default; fixed dates stay fixed.

Calendar age counts whole UTC months, clamping to the last day of the month, then remaining days and time. Direction is shown separately. Elapsed days are always 24 hours.

Add or subtract a duration

Use nonnegative whole numbers. Applying a duration replaces the selected date with a fixed UTC timestamp, including when it was now().

Back to tools