Get month name from Date - Node.js Date

Node.js examples for Date:Month

Description

Get month name from Date

Demo Code

Date.prototype.getMonthName = function () {
  var months = ["jan", "feb", "mar", "apr", "may", "june", "july", "aug", "sept", "oct", "nov", "dec"];
  return months[this.getMonth()];
};

Related Tutorials