I have a date in string format - '25-03-2020' (dd-mm-yyyy)
. I want to convert it into string format '25 Mar' and display on Frontend.
How can I achieve this using Javascript?
Asked
Active
Viewed 152 times
0

Yevhen Horbunkov
- 14,965
- 3
- 20
- 42

Shantanu Tomar
- 1,572
- 7
- 38
- 64
-
Vanilla JS or would *any* JS solution suffice? – Drew Reese Mar 26 '20 at 07:57
-
If you want to use library, you can use momentjs for your requirement – Hien Nguyen Mar 26 '20 at 08:03
-
Using Vanilla JS – Shantanu Tomar Mar 26 '20 at 08:05
-
Please search before asking. There are thousands of similar questions already. – str Mar 26 '20 at 08:06
-
Already tried it. Used Date.parse, toISOFormat etc. Don't want to use moment library. – Shantanu Tomar Mar 26 '20 at 08:08