SyntaxFix
Write A Post
Hire A Developer
Questions
Simple Solution, This works with All Browsers,
var StringDate = "24-11-2017" var DateVar = StringDate.split("-"); var DateVal = new Date(DateVar[1] + "/" + DateVar[0] + "/" + DateVar[2]); alert(DateVal);