Date to UNIX Time Converter – Epoch Time Converter

Written by:

On this page is a date to UNIX time converter, or UNIX time calculator. Enter a date and time and we'll return a UNIX timestamp in seconds since January 1, 1970 (ignoring leap seconds).

For the other direction, try the UNIX time to date converter.

Date to UNIX Time Calculator

What is Unix Time?

UNIX time, also known as UNIX Epoch Time, is the number of seconds since January 1, 1970 UTC. It ignores leap seconds and treats all days as exactly 86,400 seconds in length.

The Year 2038 Problem

Historically, many computers stored UNIX timestamps in a signed 32 bit integer. Interestingly, 32 bits seems like enough space to store a large number, but will eventually "run out" of seconds – much like how storing 2 digit years led to the Y2K problem.

A signed integer can represent:

2^{31}-1 = 2,147,483,647\ seconds

And January 1, 1970 + 2147483647 seconds = 03:14:17 AM January 19, 2038. (Note that the other sign – negative – can represent negative dates, or times before 1970).

Beyond that time, you can't represent seconds since 1970 using 32 bit signed numbers. Representations that use 64 bit numbers (or higher) can handle the foreseeable future with ease. (This calculator can handle dates beyond 2038).

Using the Date to UNIX Time Calculator

To use the Date to UNIX epoch calculator, simply enter a date and time in the Date and Time to Convert field. Next, hit the Calculate Timestamp from Date button and we'll calculator how many seconds your input is after (or before) January 1, 1970.

We'll show an answer assuming your entry was UTC or Universal Time, as well as an answer for your local time zone.

Next, enjoy some other calculators and tools.



PK started DQYDJ in 2009 to research and discuss finance and investing and help answer financial questions. He's expanded DQYDJ to build visualizations, calculators, and interactive tools.

PK lives in New Hampshire with his wife, kids, and dog.

Don't Quit Your Day Job...

DQYDJ may be compensated by our partners if you make purchases through links. See our disclosures page. As an Amazon Associate we earn from qualifying purchases.
Sign Up For Emails
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram