I have a JavaScript code which is breaking in safari browser only. Here is the code..
var dateString = seldateCom.getFullYear()+"-"+month+"-"+seldateCom.getDate()+" "+$(this).val();
console.log("dateString = "+ dateString);
var date = new Date(Date.parse(dateString, "yyyy-MM-dd HH:mm:ss"));
console.log(date);
this is showing below error in safari browser console
while in Chrome it is working perfectly, here is a screenshot of Chrome browser.
What adjustment need to be done in order to work in both browsers?