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
Post a Comment