javascript - jQuery Date format invalid -


why shows different date 05/05/1972 instead of 29/05/1970?

$(document).ready(function(){     alert($.datepicker.formatdate('dd/mm/yy', new date("29/05/1970"))); }); 

jsfiddle

try this...

$(document).ready(function(){    alert($.datepicker.formatdate('dd/mm/yy', new date(1970, 5, 29)));  });


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -