I'm trying to take a date in a string and convert it to a unix timestamp int. I'm using parseInt to change the string to an int and it works fine in chrome. But IE and Edge give me NaN.
Here it is in jsfiddle: http://jsfiddle.net/padv54s9/2/
var dob = (+new Date('2012.03.1')/1000).toFixed(0);
dob = parseInt(dob);
alert(dob);