date → timestamp

Turn a date into a timestamp

Pick a date and time in any timezone and get the epoch value in seconds, milliseconds, microseconds and nanoseconds — plus the UTC instant you can hand to an API.

date → timestamp

timezone

The zone is part of the answer

2025-03-01 12:00 is not one instant. It is 12:00 in Tokyo, or 12:00 in New York, and those are nine and a half hours apart. Choose the zone first, then read the number.

Daylight saving makes it worse: on the spring-forward day some local times never happen, and on the autumn day some happen twice. This converter shifts non-existent times forward and uses the earlier of two ambiguous times, telling you which it did.

// accepted input

2025-03-01T12:00:00Z · 2025-03-01 12:00:00 · Sat, 01 Mar 2025 12:00:00 +0530

Ambiguous formats such as 03/04/2025 are rejected on purpose. Guessing between March and April is how bugs get shipped.

// precision

Microsecond and nanosecond values assume the chosen instant is exact to the second. The date input has no sub-second field, so those digits are zeros — real, but not additional information.

advertisement