Date-time converter

Convert date and time into the various different formats
Detected type: ISO 8601
JS locale date string
ISO 8601
ISO 9075
RFC 3339
RFC 7231
Unix timestamp
Timestamp
UTC format
Mongo ObjectID
Excel date/time

Frequently Asked Questions

What does this tool do?

This tool converts a date/time string or timestamp into many different formats, including ISO, RFC, Unix timestamp, Mongo ObjectID, Excel date, and more. It helps you quickly see and copy the same moment in various representations.

What input types are supported?
  • Unix timestamp (seconds or milliseconds)
  • ISO 8601 (e.g. 2023-05-07T14:45:29+08:00)
  • Locale string (e.g. Wed May 07 2025 14:45:29 GMT+0800)
  • RFC 3339, RFC 7231
  • Mongo ObjectID (24 hex chars)
  • Excel date/time (days since 1899-12-30)
How does auto-detect work?

When "Auto detect" is selected, the tool tries to guess the input type based on its format. It checks for Mongo ObjectID, Excel date, timestamp, ISO, RFC, and locale string in order. The detected type is shown below the input.

Why do I see "This date is invalid for this format"?
  • The input doesn't match the selected type's format
  • The date is out of range or not a real date
  • There are extra spaces or typos in the input