Convert date and time into various formats
Paste a date/time value, choose its input type, then copy formatted outputs instantly

The Date-time converter takes one date/time value (in a selected input format) and outputs the same moment in multiple commonly used formats—ISO strings, RFC formats, Unix timestamps, Excel serials, and Mongo ObjectId timestamps.
A quick mental model: most date formats are just different “wrappers” around the same time point. The tricky part is timezone and units.
Who typically uses this?
If you often work with IDs and tokens, you might also like our UUID generator, ULID generator, or Token generator.
Pick the input type
Choose what your input represents: ISO string, Unix timestamp, timestamp in milliseconds, Excel serial, or Mongo ObjectId.
Paste or type your value
The output table updates instantly. If the input is empty, the tool shows the current time, which is useful for quick “what does now look like in X format?” checks.
Copy the format you need
Use the copy button per row. This is handy when you need a strict string for an API, a number for a query, or a Mongo ObjectId placeholder.
Share or reset when you’re done
The page supports share links and a reset button. If your input contains sensitive information, avoid sharing links that include the input.
How to read the results
The table is a set of different representations of the same time. If you expect a timezone offset (like) and don’t see it, double-check whether you’re looking at a UTC format (RFC 7231) or a local/offset-aware format (ISO 8601).
Example 1: Unix seconds → milliseconds timestamp
Imagine a log line contains Unix seconds . Many JavaScript APIs expect milliseconds, so you convert using:
In the calculator: choose Unix timestamp as input type, paste , then copy the Timestamp row.
Example 2: Excel serial → date/time (conceptual)
Excel stores dates as “days since a reference date”. A simplified conversion uses a constant offset and a day length. The converter uses an Excel 1900 system approximation.
Practical tip: if a spreadsheet export gives you something like , selectExcel date/time, paste it, and the tool will show ISO/RFC/Unix equivalents so you can compare with your API.
1) Debugging an API payload
Background: an API returns ISO timestamps and your UI shows the wrong time.
Input: paste an ISO value like .
Result: compare ISO, RFC 7231 (UTC), and Unix timestamp. If the UTC row differs by exactly your timezone offset, the parsing is probably correct and the display layer is the issue.
2) Extracting approximate time from a Mongo ObjectId
Background: you only have an ObjectId and want to estimate when it was created.
Input: paste the ObjectId. The converter reads the first 8 hex characters (timestamp portion) as seconds.
Result: you get UTC/RFC and Unix outputs. For generating placeholders, copy the “Mongo ObjectID” output.
3) Cleaning spreadsheet data
Background: exported CSV has Excel serial numbers mixed with real date strings.
Input: try “Excel date/time” first for numeric values; “ISO 9075” for values like .
Result: copy an ISO 8601 string and store it consistently in your database.
Compare ISO (with offset) against UTC formats to spot offset mistakes.
Grab a strict string (RFC) or a number (Unix/timestamp) without manual formatting.
Normalize incoming values (ObjectId/serials) into a single ISO format.
Ensure payload timestamps match what the backend expects (seconds vs milliseconds).
Convert Excel serials into ISO strings before storing them in a database.
Quickly verify that two formats represent the same moment.
When this tool may not be appropriate:
A simple verification trick
Convert your value to a Unix timestamp, then convert back to ISO. If the second conversion matches the original (ignoring formatting differences), you’re probably safe.
Unix seconds and milliseconds
Here is Unix seconds and is milliseconds.
Excel serial (conceptual relationship)
Excel serials are “days since a base date”. A common relationship (using a 1900 system offset) is:
This is a practical conversion used for interoperability. If you need strict calendrical correctness across historical Excel edge cases, always verify with the original environment.
Mongo ObjectId timestamp (high level)
A Mongo ObjectId contains a timestamp prefix. Conceptually:
The converter then treats that as Unix seconds and outputs the corresponding date.
UTC vs local time
UTC is a timezone reference that doesn’t change with daylight saving rules. Local time depends on your locale and may shift during DST transitions. When comparing systems, it’s often safest to store timestamps in UTC and only format for display at the edges.
ISO 8601 vs RFC formats
ISO 8601 is the most common structured format for modern APIs. RFC 7231 (HTTP date) is widely used in headers and is typically UTC. If you’re producing timestamps for an API contract, ISO 8601 is usually the best default.
Related utilities
For identifiers and compact sortable IDs, check out ULID generator and UUID generator. For quick hashing or encoding demos, Hash Text is a nice companion.
That’s almost always a timezone issue. Compare ISO 8601 (with offset) against the UTC row. A consistent shift like hours often indicates local-time vs UTC confusion.
Unix timestamp is seconds since the Unix epoch. Timestamp (in JavaScript contexts) is often milliseconds. The relationship is .
Yes. If the input is empty, the tool displays the current time and updates live.
It encodes seconds-level timestamp information. It’s great for rough ordering and approximate creation time, but it doesn’t include milliseconds.
Some inputs are ambiguous (like date strings) and others are structurally constrained (like ObjectIds). The converter shows an error so you don’t accidentally copy a wrong value.
What this tool is (and isn’t)
Use a simple chronometer (stopwatch) to track elapsed time down to milliseconds. Runs locally in your browser.
Normalize email addresses to a standard format for easier comparison. Useful for deduplication and data cleaning. Runs locally in your browser.
Estimate the time needed to consume a total amount at a constant rate, and get an expected end time. Runs locally in your browser.
Parse and decode your JSON Web Token (JWT) and display its content. All computation runs locally in your browser.
Know which file extensions are associated to a MIME type, and which MIME type is associated to a file extension. Includes a full MIME types table.
Generate random Lorem Ipsum placeholder text with customizable paragraphs, sentences, and word counts. Runs locally in your browser.