javascript - Instance Date with dd/mm/YYYY format -


this question has answer here:

i'm trying instance date in way

var date = new date('20/08/1990'); 

but returning invalid date.

how can it?

when passing string date constructor should use english notation dates, i.e yyyy/mm/dd.

that means should passing new date('1990/08/20');

documentation date class here.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

c# - Can I intercept a SOAP response in .NET before a content type binding mismatch ProtocolException? -

css - Can I use the :after pseudo-element on an input field? -