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 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -