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

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -