How to Convert a Timestamp to Date: Examples

How to Convert a Timestamp to Date: Examples

A timestamp (Unix time / Epoch) counts seconds since January 1, 1970 00:00:00 UTC. It is how databases and APIs store time worldwide.

How to Convert

  1. Divide by 1000 if the value is in milliseconds
  2. Convert to UTC
  3. Add timezone offset for local time

Example

Timestamp 1750000000:

  • UTC: June 15, 2025, 23:06:40
  • Bangkok (GMT+7): June 16, 2025, 06:06:40

Real-World Uses

  • Databases store timestamps for event ordering
  • APIs send UTC to avoid timezone bugs
  • Login sessions and token expiry

Easy References

  • 1,000,000,000 = September 2001
  • 2,000,000,000 = May 2033 (the Y2038 issue on older systems)

Try the timestamp converter to convert instantly.