I'm trying to convert a string into a Date
object and it looks like there is a lot of cross browser compatibility issue around this.
My string is simple "2016-1-11 10:30". Code is also simple
var d = new Date(str);
Firefox and Chrome are both happy this format but Safari refuse to turn it into an valid object.
Is there a way or a javascript library that iron this out?