Millisecond Date to ISO-8601 Converter
Convert Unix timestamps (ms/sec) to ISO-8601 strings and vice versa. Developer-grade tool for debugging Solr, Java, or JS dates with timezone support.
-
-
-
-
-
-
About
This tool provides a bidirectional bridge between machine-readable Unix timestamps and human-readable ISO-8601 date strings. In distributed systems like Solr, Elasticsearch, or Java applications, time is often stored as the number of milliseconds elapsed since the Unix Epoch (January 1, 1970). Debugging these raw numbers requires precise conversion to standard formats.
Unlike simple converters, this tool automatically detects the precision of your input - distinguishing between seconds (10 digits) and milliseconds (13 digits) - and handles Timezone offsets (UTC vs Local) to prevent off-by-one-hour errors common in data migration tasks.
Formulas
The core conversion logic relies on the offset from the Epoch. For a timestamp T in milliseconds:
If the input is in seconds (common in PHP/Python), it must be normalized first:
The ISO-8601 format follows the standard syntax YYYY-MM-DDTHH:mm:ss.sssZ.
Reference Data
| Description | Timestamp (ms) | ISO-8601 Date (UTC) |
|---|---|---|
| Unix Epoch | 0 | 1970-01-01T00:00:00.000Z |
| Billions Second | 1000000000000 | 2001-09-09T01:46:40.000Z |
| Solr Example (Prompt) | 1403784614000 | 2014-06-26T12:10:14.000Z |
| Year 2038 Problem | 2147483647000 | 2038-01-19T03:14:07.000Z |
| Far Future | 32503680000000 | 3000-01-01T00:00:00.000Z |