Skip to content
19 10240119 Tools

answer

How to Convert Timestamp to Date

Learn how Unix timestamps convert to readable dates, with seconds and milliseconds examples.

Updated 2026-05-09

Direct Answer

A Unix timestamp is converted by treating it as time elapsed since 1970-01-01 00:00:00 UTC. Seconds timestamps are usually 10 digits; millisecond timestamps are usually 13 digits.

Steps

Check whether the timestamp is in seconds or milliseconds, convert it to a date object, then display it as UTC or local time.

  • 10 digits usually means seconds
  • 13 digits usually means milliseconds
  • UTC and local time can differ by timezone

Example

Timestamp 0 is the start of Unix time.

0 seconds = 1970-01-01T00:00:00.000Z

FAQ

How do I know if a timestamp is seconds or milliseconds?

Millisecond timestamps are usually 13 digits; second timestamps are usually 10 digits for current dates.

Why is my converted date off by hours?

You may be comparing UTC with your local timezone.