When I use var d = new Date()
I get a huge string like:
Wed Jan 29 2014 11:36:56 GMT-0800 (Pacific Standard Time)
How do I just return this:
Jan 29,2014
Without using substring
, etc to parse it out the string, is there a natural function that will do this?