Calculator and Converter

Date to Unix timestamp converter

Enter a date and a time in UTC and this tool shows the matching Unix timestamp in seconds and in milliseconds.

Results

Enter your values to see the result.

About this tool

It is useful for developers, databases and logs that store dates as numbers.

How it is calculated
timestamp = whole seconds from 00:00:00 UTC on 1 January 1970 to the date and time you give, which are taken as UTC (leap seconds are not counted).
Worked example
With Date (UTC): Monday, January 1, 2024; Time (UTC): 00:00, the result is: Unix timestamp (seconds): 1,704,067,200; Unix timestamp (milliseconds): 1,704,067,200,000.
Good to know
The timestamp is the number of whole seconds from 00:00:00 UTC on 1 January 1970 to the date and time you give, taken as UTC. Leap seconds are not counted. If your time is local, convert it to UTC first.

Frequently asked questions

Does the tool use my local time zone?

No. The date and time you enter are taken as UTC. Convert your local time to UTC first, or the result will be off by your time zone offset.

What is the difference between seconds and milliseconds?

A millisecond is one thousandth of a second. Some systems, such as JavaScript, use milliseconds, so their timestamps are 1000 times larger.

Related calculators