---
title: "Discussion on \"Format Date in Javascript\" | Hashnode"
description: "Discussion on \"Format Date in Javascript\". Recently I have come across a use case where the requirement was to display dates in a particular format . The project is developed in Vanilla Javascript.\nAfter doing some analysis I found that there is no inbuilt function in javascript to perform th..."
url: "https://hashnode.com/posts/format-date-in-javascript/5f3f530a5b3ac8481821c5db"
---

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

Discussion

# [Format Date in Javascript](https://frontyard.hashnode.dev/format-date-in-javascript?utm_source=hashnode&utm_medium=feed)

Recently I have come across a use case where the requirement was to display dates in a particular format . The project is developed in Vanilla Javascript. After doing some analysis I found that there is no inbuilt function in javascript to perform th...

Aug 21, 2020 · 2 min read · frontyard.hashnode.dev  
Read the article

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

## Written by

[Vimal Patel](https://hashnode.com/@patelvimal)

@patelvimal · Gujarat,India

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

Full stack developer but loves frontend

developer from INDIA

## Responses 1

Markdown supported · ⌘↵ to post

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

[Aug 21, 2020](https://hashnode.com/posts/format-date-in-javascript/5f3f530a5b3ac8481821c5db/comment/5f3f754d5b3ac8481821ce4a)

The toLocaleString is also really cool to use on date objects in JavaScript!

```
var dateOfBirth = '08-05-1989';
console.log(dateOfBirth.toLocaleString()); // '08/05/1989' (EU Setting)
```
