Home
Donate

Timestamp to date

What is Epoch time or Unix time or POSIX time?

Unix Epoch time is the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC minus leap seconds, normally leap seconds are ignored. It is widely used in many operating systems to represent the date.

A few examples of Epoch time of some common dates.
Unix Epoch time Date
3786912000 Sunday, January 1, 2090 00:00:00 UTC
3471292800 Monday, January 1, 2080 00:00:00 UTC
3155760000 Wednesday, January 1, 2070 00:00:00 UTC
2840140800 Thursday, January 1, 2060 00:00:00 UTC
2524608000 Saturday, January 1, 2050 00:00:00 UTC
2208988800 Sunday, January 1, 2040 00:00:00 UTC
1893456000 Tuesday, January 1, 2030 00:00:00 UTC

How to get timestamp from date?

Well, there could be many ways where you can achieve timestamp from date, here we will describe how to do it with an online conversion tool.

-- Visit this link and enter your desired date and time and optionally a timezone
-- Then hit the "Convert" button which will display corresponding timstamp value!

Now we will discuss how to get timestamp from date using some popular programming languages like C, C++, C#, Java, Python, PHP or MySQL.

1. PHP code example for date to timestamp:

2. MySQL code example for date to timestamp:

3. C# code example for date to timestamp:

How to convert timestamp to date?

Same like before if you want to do it with an online tool just follow this steps

-- Click this link and enter your Epoch time optionally a timezone like below mentioned image
-- Then hit the "Convert" button which will display human readable date!

Next, we will show how to get human readable date form Epoch time using programming languages.

1. PHP code example for timestamp to date:

2. MySQL code example for timestamp to date:

3. C# code example for timestamp to date:

Online timestamp converter
Happy coding!