I'm trying to instance a Date in this way
var date = new Date('20/08/1990');
but its returning Invalid Date.
How can a I do it?
I'm trying to instance a Date in this way
var date = new Date('20/08/1990');
but its returning Invalid Date.
How can a I do it?
When passing a string to Date
constructor you should use English notation for dates, i.e YYYY/MM/DD.
That means you should be passing new Date('1990/08/20');
Documentation about Date class here.