Date Time Converter
Convert between Unix timestamps, JavaScript milliseconds, ISO 8601, ISO 9075, RFC 3339, RFC 7231, Mongo ObjectID and Excel serial dates. Auto-detects the input format.
Convert one moment in time into every format you might need.
Convert between Unix timestamps, JavaScript milliseconds, ISO 8601, ISO 9075, RFC 3339, RFC 7231, Mongo ObjectID and Excel serial dates. Auto-detects the input format.
Convert one moment in time into every format you might need.
The most common mistake when handling dates is mixing the two up. Unix timestamps count seconds since 1970-01-01 UTC; JavaScript's Date.now() counts milliseconds. Feed a Unix timestamp straight into the Date constructor without multiplying by 1000 and you land in January 1970. As a rule of thumb a 10-digit number is seconds and a 13-digit number is milliseconds, which is exactly how the auto-detection here decides.
2024-01-15T10:30:00.000Z. The T separates date from time and Z means UTC.+00:00 rather than Z.2024-01-15 10:30:00 — a space instead of T, and no timezone. This is what most databases print.Date, Expires and Last-Modified headers, always in GMT.A Mongo ObjectID is 12 bytes and the first four are the creation time in Unix seconds, so every ObjectID carries a timestamp inside it. This tool extracts it when decoding; when generating one it zero-fills the remaining eight bytes rather than inventing machine and counter values.
Excel serial dates count days since 1899-12-30, with the fractional part representing the time of day. The odd epoch exists because Excel deliberately reproduces a Lotus 1-2-3 bug that treated 1900 as a leap year. Using 1899-12-30 as day zero makes every date from March 1900 onward line up correctly, which is why this converter uses it.
Whatever you type, the tool parses it into a single JavaScript Date and re-renders that one instant in all eleven formats. Nothing is sent anywhere — the conversion runs entirely in your browser.