javascript - Angular date error -


in angularjs i'm trying use date() function milliseconds

'2014-11-19 10:58:16' 

with function

var n = new date.parse('2014-11-19 10:58:16'); 

but i'm getting weird error

typeerror: function parse() { [native code] } not constructor 

how can fix this?

as frédéric hamidi posted in comment shouldn't have used

new date 

but

date 

thank frédéric hamidi


Comments

Popular posts from this blog

How do you convert a timestamp into a datetime in python with the correct timezone? -

how to display 2 form fields on same line with bootstrap -

c# - how to use buttonedit in devexpress gridcontrol -