javascript - Convert date string to date -
i have string mar 7 2012
.
how convert date object, can use mydate.getdate()
, mydate.getmonth()
, mydate.getfullyear()
etc?
well, pretty simple
var d =new date("march 7 2012"); document.write(d.getmonth()); //use
Comments
Post a Comment