In AngularJS I'm trying to use the Date() function to get milliseconds from
'2014-11-19 10:58:16'
With this function
var n = new Date.parse('2014-11-19 10:58:16');
But I'm getting a weird error
TypeError: function parse() { [native code] } is not a constructor
How can I fix this?
new
in this context? (This does not have much to do with Angular, by the way.) – Frédéric Hamidi Nov 19 '14 at 10:35