Date to Timestamp
Turn a date into a Unix timestamp
Type a date any way you like — ISO, a slash date, `next friday`, `now` — and get the timestamp in seconds, milliseconds, microseconds and nanoseconds.
Questions people ask
The things that come up about date to timestamps, answered plainly.
Which zone is my date interpreted in?
The one selected on the page, unless the text itself carries an offset. A date with no zone is not an instant until you say where it was written, which is the single most common source of an off-by-a-few-hours bug.
What happens on a daylight-saving night?
A wall time that never existed — 02:30 on a spring-forward morning — is flagged as a gap, and one that happened twice is flagged as an overlap with both instants shown.
Related tools
Seconds, milliseconds, microseconds and nanoseconds, in both directions.
Timestamp to DateOne field, one answer — the timestamp as a date and time in your zone, in UTC, and in about thirty other encodings you might need to paste somewhere.
Unix Timestamp ConverterPaste a timestamp and get the date; paste a date and get the timestamp. The precision is detected from the digit count and shown so you can override it, and a number that is not Unix time is checked against the other eleven epochs too.
Unix Time GeneratorThe current timestamp in every precision, ticking, plus generators for a relative time — an hour from now, a token expiry, a cache header — in one click.
Milliseconds ConverterThe 13-digit form — what `Date.now()`, `System.currentTimeMillis()` and most of Java and JavaScript speak — converted both ways, with the seconds value beside it.