EpochLab

Milliseconds Converter

Convert milliseconds to a date, and back

The 13-digit form — what `Date.now()`, `System.currentTimeMillis()` and most of Java and JavaScript speak — converted both ways, with the seconds value beside it.

Questions people ask

The things that come up about milliseconds converters, answered plainly.

How do I convert milliseconds to seconds?

Divide by 1000 and floor it — do not round, or a timestamp can land one second in the future. The page shows both values so you can copy whichever the receiving system wants.

Why does JavaScript use milliseconds?

Because `Date` was modelled on Java's, which chose milliseconds in 1995. It is why passing a JavaScript timestamp to a Unix API without dividing produces a date in the year 45,000 or so.

Related tools

Seconds, milliseconds, microseconds and nanoseconds, in both directions.

All 160 tools · More in unix time & epochs