• Free forever
  • No sign-up
  • Private — runs in your browser

Milliseconds to Date

Turn a 13-digit millisecond timestamp — like JavaScript's Date.now() — into a readable date and time.

Current Unix timestamp —

Timestamp → date

Seconds, milliseconds, microseconds or nanoseconds — detected automatically.

Date → timestamp

Get the current timestamp in your language

Where millisecond timestamps come from

JavaScript (Date.now(), new Date().getTime()), Java (System.currentTimeMillis()), Elasticsearch, MongoDB dates and many REST APIs count time in milliseconds since 1970. Today these numbers have 13 digits. Paste one above — the converter recognises it as milliseconds automatically.

Converting in code

JavaScript: new Date(1767225600000).toISOString(). Python: datetime.fromtimestamp(ms / 1000, tz=timezone.utc). Java: Instant.ofEpochMilli(ms). To get seconds, divide by 1,000 and round down.

Related

← Back to the full Unix Timestamp Converter