Here you can find the source of getMonthName()
Date.prototype.getMonthName = function() { var m = ['January','February','March','April','May','June','July', 'August','September','October','November','December']; return m[this.getMonth()]; }
Date.prototype.getMonthName = function () { var months = ["jan", "feb", "mar", "apr", "may", "june", "july", "aug", "sept", "oct", "nov", "dec"]; return months[this.getMonth()]; };
Date.prototype.monthNames = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]; Date.prototype.getMonthName = function() { return this.monthNames[this.getMonth()]; }; ...
Date.prototype.getMonthName = function() { return ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'][this.getMonth()]; };
Date.prototype.monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; Date.prototype.getMonthName = function() { return this.monthNames[this.getMonth()]; }; Date.prototype.getShortMonthName = function () { return this.getMonthName().substr(0, 3); };
Date.prototype.getMonthName = function(){ return (["January","February","March","April","May","June","July","August","September","October","November","December"])[this.getMonth()]; } Date.prototype.toLocaleFormat = Date.prototype.toLocaleFormat || function(pattern) { return pattern.replace(/%Y/g, this.getFullYear()).replace(/%m/g, (this.getMonth() + 1)).replace(/%d/g, this.getDate()>9?this.getDate():'0'+this.getDate()).replace(/%B/g, (this.getMonthName())); };