Super noob to JavaScript. Would like to create a DateObject
, but am still stuck.
Wondering how I can convert a date from toDateString
to custom 'MMM DD
'.
Tue Mar 09 2014 > Mar 09
*basically, need to parse out the day of the week and the year.
I would like to add any additional objects and functions to this(already converting from UTC):
function dateChange(date) {
return date.toDateString();
}
Thanks in advance; looking forward to learning where I am going wrong.