Home » Javascript » how to convert the date of this type (5/24/2018) to 2018-05-24 using regular expression with javascript

how to convert the date of this type (5/24/2018) to 2018-05-24 using regular expression with javascript

Posted by: admin July 17, 2018 Leave a comment

Questions:

i have a date 5/24/2018 i need to convert that to following format [yyyy-mm-dd] 2018-05-24. how to i do that with javascript regular expression

Answers: