You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
312 B
JavaScript
6 lines
312 B
JavaScript
var month_name = function(dt){
|
|
mlist = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ];
|
|
return mlist[dt.getMonth()];
|
|
}
|
|
console.log(month_name(new Date("10/11/2009")));
|
|
console.log(month_name(new Date("11/13/2014")));
|