Get Day of week Name - Node.js Date

Node.js examples for Date:Day

Description

Get Day of week Name

Demo Code

Date.prototype.getDayName = function() {
  var d = ['Sunday','Monday','Tuesday','Wednesday',
           'Thursday','Friday','Saturday'];
  return d[this.getDay()];
}

Related Tutorials