Have an issue with Date parsing by given pattern. Problem is only in IE. In Chrome it works fine.
Sample code is:
var dateValue = moment("04/05/2015 00:00:00", "DD/MM/YYYY HH:mm:ss").toDate();
Also here is fiddle for this snippet: https://jsfiddle.net/Alex13ss/rsxmx7bc/1/
Try to open it in IE and look at output. Inside result you will see [date] Invalid Date
Tried a lot of options and googled a lot. Still have no result. Also it is not necessary to use momentjs for me if you have an idea.
One hint can be after you will try to evaluate dateValue = moment("04/05/2015 00:00:00", "DD/MM/YYYY HH:mm:ss").toDate();
in IE console.
Please keep in mind that there can be a lot of formats depending on locale, but data will always match string pattern for parsing.
Thanks in advance for any suggestions/solutions! :)
P.S. Close question is this but not the same, please be attentive! :) Can be a good hint, but not an answer.