Get full month name - Node.js Date

Node.js examples for Date:Month

Description

Get full month name

Demo Code

Date.prototype.getMonthName = function() {
  var m = ['January','February','March','April','May','June','July',
           'August','September','October','November','December'];
  return m[this.getMonth()];
}

Related Tutorials