I have one string "09-04-2000"
. Now I am trying to convert it into date using JS Date()
.
var parseDate= new Date("09-04-2000"); Format : DD-MM-YYYY
After executing above code I am getting output : Mon Sep 04 2000 00:00:00
which is wrong.
What is the correct way to get correct result in JS?