How to Get Current Date in Human Readable Form in JavaScript?

By Gulshan Saini
Published in JavaScript
October 03, 2020
1 min read

Its very common scenario to convert date into human-readable format. The Date.now() JavaScript method returns the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC. The output might look some this similar to

If we pass above number in Date constructor and call toLocaleString(), it will return date and time in human readble format


console.log(humanReadableDateTime); // "03/10/2020, 21:03:40"


Previous Article
How to get the text of element using puppeteer?

Gulshan Saini

Fullstack Developer

Subscribe to our newsletter!

We'll send you the best of our blog just once a month. We promise.

Related Posts

How to convert Set to Array in JavaScript?

October 28, 2020
1 min
© 2020, All Rights Reserved.

Quick Links

Advertise with usContact Us

Social Media