alert(dateObj) gives Wed Dec 30 2009 00:00:00 GMT+0800
alert(dateObj)
Wed Dec 30 2009 00:00:00 GMT+0800
How to get date in format 2009/12/30?
2009/12/30
Nice formatting add-in: http://blog.stevenlevithan.com/archives/date-time-format.
With that you could write:
var now = new Date(); now.format("yyyy/mm/dd");