Timestamp To Date Converter

Convert timestamp to date or date to timestamp easily

Convert timestamp to date

Link

Convert date to timestamp

Link

Countdown to: 1710800000

How It Works

Timestamp Online is timestamp converver between unix timestamp and human readable form date. If you want to convert timestamp, it is sufficient to either enter your timestamp into input area, or you can construct URL with your timestamp - http://timestamp.online/timestamp/{your-timestamp}.

Timestamp Online also supports countdown, so you can see, how much time remains to particular timestamp. URLs for countdowns have following form - http://timestamp.online/countdown/{your-timestamp}.

Current Timestamp Examples

These examples are showing how to get current unix timestamp in seconds. These examples are returning timestamp in seconds, although some of the languages are returning timestamp in milliseconds.

JavaScript
new Date().getTime()/1000;
Python
import time;
time.time()
Java
long ts = System.currentTimeMillis()/1000;
PHP
time();
Bash
date +"%s"

Current Date and Time Examples

These examples are showing how to get current date and time that could be presented to the end-user.

JavaScript
new Date().toLocaleString();
Python
import datetime;
datetime.datetime.now().isoformat()
PHP
date("Y-m-d H:i:s", time());
Bash
date

Timestamp to Date Examples

These examples are showing how to convert timestamp - either in milliseconds or seconds to human readable form.

JavaScript
new Date(1710788965000).toLocaleString();
Python
import datetime
datetime.datetime.fromtimestamp(1710788965).isoformat()
Java
import Java.Util.Date;
import java.text.SimpleDateFormat;
Date currentDate = new Date (1710788965000)
SimpleDateFormat dateFormat = new SimpleDateFormat("YYYY-MM-dd HH:mm:ss")
String date = dateFormat.format(currentDate);
PHP
date("Y-m-d H:i:s", 1710788965);
Bash
date +"%Y-%m-%d %H:%M:%S" -d @1710788965

Parse Date to Timestamp Examples

These examples are showing how to parse date in human readable form to unix timestamp in either milliseconds or seconds.

JavaScript
Date.parse("2024-03-18 20:09:25")/1000;
Python
import time
int(time.mktime(time.strptime("2024-03-18 20:09:25"))) - time.timezone
Java
import java.text.SimpleDateFormat;
SimpleDateFormat dateFormat = new SimpleDateFormat("YYYY-MM-dd HH:mm:ss")
long ts = dateFormat.parse(2024-03-18 20:09:25).getTime()/1000;
PHP
strtotime("2024-03-18 20:09:25");
Bash
date +"%s" -d "2024-03-18 20:09:25"

Unix Time

Unix time (also known as POSIX time or Epoch time) is a system for describing instants in time, defined as the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970, not counting leap seconds. It is used widely in Unix-like and many other operating systems and file formats. Because it does not handle leap seconds, it is neither a linear representation of time nor a true representation of UTC.

Existing Content

Articles

Countdown to interesting timestampts, How To Convert Timestamp To Date and Time in JavaScript, How To Convert Timestamp To Date and Time in Python, How To Get Current Date And Time in JavaScript, How To Get Current Time In Python, How To Get Current Timestamp In Bash, How To Get Current Timestamp In Java, How To Get Current Timestamp In JavaScript, How To Get Current Timestamp In PHP, How To Get Current Timestamp In Python, Timestamp To Date

Tags

How Tos (9), Current timestamp (5), JavaScript (4), Python (4), support (3), Timestamp Date (3), Convert timestamp to datetime (2), countdown (1), timestamp (1), fun (1), Current Date And Time (1), Current time (1), Bash (1), Java (1), PHP (1)
This website uses cookies to ensure you get the best experience on our website. More info