Date difference calculator
Calculate signed calendar days and full weeks between dates. Check leap-year examples and understand start-day, daylight-saving and holiday limits.
CalculatorsConvert Unix seconds, milliseconds and ISO dates with explicit timezones. See UTC, local time and negative timestamps with reproducible examples.
Ready when you are.
Unix seconds converted to UTC. The additional local-time line depends on your browser timezone.
1704067200
UTC: 2024-01-01T00:00:00.000Z Unix seconds: 1704067200 Unix milliseconds: 1704067200000
Select seconds, milliseconds or ISO date with timezone, enter a value and select Run tool. ISO input requires a full time including seconds and Z or a numeric offset. The result includes UTC, both Unix units and your browser’s local time.
Uses JavaScript Date with millisecond precision. Leap seconds, named timezone lookup and timezone-free ISO dates are not supported. The local-time line depends on your browser settings.
You may have selected milliseconds for a seconds value. Choose the matching unit. ISO input must include Z or an explicit timezone offset.
No. This tool processes your input in your browser. We don't store your text, files or results. Standard website access logs are separate; read our privacy notes.
Yes. No account, subscription or usage credits are required.
Use Copy or Download after running the tool. Inputs are not saved automatically and disappear when you leave or refresh the page.
1704067200 in Unix seconds and 1704067200000 in Unix milliseconds both give 2024-01-01T00:00:00.000Z. Selecting milliseconds for 1704067200 instead gives 1970-01-20T17:21:07.200Z. Check the source system’s unit; digit count alone is not a safe rule for older or negative dates.
In ISO mode, 2024-01-01T01:00:00+01:00 is the same instant as 2024-01-01T00:00:00Z: Unix seconds 1704067200. Use YYYY-MM-DDTHH:mm:ss followed by Z or ±HH:mm, optionally with one to three fractional-second digits. An offset is not a named zone such as Europe/Stockholm; the converter does not infer daylight-saving rules for a place.
In seconds mode, -1 gives 1969-12-31T23:59:59.000Z. In milliseconds mode, -1 gives 1969-12-31T23:59:59.999Z and Unix seconds -1, because the seconds result rounds down, not toward zero. Numeric timestamp inputs must be whole numbers; enter fractional seconds as milliseconds or an ISO fraction such as 1970-01-01T00:00:00.123Z.
Impossible calendar dates, times such as 24:00:00, leap-second values such as 23:59:60 and ISO dates without an offset are rejected. JavaScript Date supports milliseconds within ±8,640,000,000,000,000 of the epoch. For days between calendar dates, use the date difference tool instead: a local day can span 23 or 25 hours around a daylight-saving change.
Choose the representation you need: inspect a timestamp and its UTC instant, count calendar days or convert an integer’s base. Copy a value before switching tools; no input is transferred automatically. Base conversion changes notation, not timestamp units.
Method references: JavaScript Date, timestamps and UTC and BigInt exact integer arithmetic.
Choose the right developer tools workflow before combining tools.
Something not right? Report a problem with this tool. Include the steps, but never passwords or private input.
Calculate signed calendar days and full weeks between dates. Check leap-year examples and understand start-day, daylight-saving and holiday limits.
CalculatorsConvert exact integers between binary, octal, decimal and hexadecimal. Preserve large values, handle negatives and check valid digits locally.
Developer toolsFormat JSON without rounding large numbers. Edit values, copy paths, compare documents and inspect a searchable tree locally in your browser.
Developer tools