---
title: "Discussion on \"How to Display Formatted Date in JavaScript Without Using Any External Library\" | Hashnode"
description: "Discussion on \"How to Display Formatted Date in JavaScript Without Using Any External Library\". Display Formatted Date in JavaScript without using any external library"
url: "https://hashnode.com/posts/how-to-display-formatted-date-in-javascript-without-using-any-external-library/60cc354d37952431a170fd29"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Display Formatted Date in JavaScript Without Using Any External Library](https://blog.yogeshchavan.dev/how-to-display-formatted-date-in-javascript-without-using-any-external-library?utm_source=hashnode&utm_medium=feed)

Display Formatted Date in JavaScript without using any external library

Jun 18, 2021 · 3 min read · blog.yogeshchavan.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#code](https://hashnode.com/tag/code)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[Yogesh Chavan](https://hashnode.com/@myogeshchavan97)

@myogeshchavan97 · India

  
[View profile](https://hashnode.com/@myogeshchavan97)

Full Stack Developer | Freelancer | JavaScript | React | Nodejs. https://yogeshchavan.dev/. Book 1:1 @ hiretheauthor.com/myogeshchavan97

Full Stack Developer | Freelancer | JavaScript | React | Nodejs. Loves sharing knowledge through technical articles. Dev.to: https://dev.to/myogeshchavan97 https://linktr.ee/myogeshchavan97

## Responses 1

Markdown supported · ⌘↵ to post

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Jun 18, 2021](https://hashnode.com/posts/how-to-display-formatted-date-in-javascript-without-using-any-external-library/60cc354d37952431a170fd29/comment/60cc3a1037952431a170fd8a)

The toLocaleDateString is such a powerfull native function, I've been working with custom scripts before but this function blows my mind every time.

Even the one that can do currency like [toLocaleString](https://daily-dev-tips.com/posts/vanilla-javascript-number-tolocalestring/)

[Yogesh Chavan](https://hashnode.com/@myogeshchavan97)

[Jun 18, 2021](https://hashnode.com/posts/how-to-display-formatted-date-in-javascript-without-using-any-external-library/60cc354d37952431a170fd29/comment/60cc3a1037952431a170fd8a#reply-60cc430f37952431a170ffd1)

Yes, it's lesser-known but really useful function.

Thanks for sharing the article about toLocalString. It also looks interesting.
