I am using javascript Date object to parse the required date to date format e.g
var parse = '1-3-2018 6:07 AM'
var dateOut = new Date(parse);
console.log(dateOut)//in mozila it shows **Invalid Date**
where as in chrome , IE it works
results are :
'Wed Jan 03 2018 06:07:00 GMT+0500 (Pakistan Standard Time)' //chrome console
'Wed Jan 03 2018 06:07:00 GMT+0500 (Pakistan Standard Time)' //opera console
'Wed Jan 03 2018 06:07:00 GMT+0500 (Pakistan Standard Time)' //IE console