Format date as MMDD - Node.js Date

Node.js examples for Date:Date Format

Description

Format date as MMDD

Demo Code

Date.prototype.formatMMDD = function () {
   return this.getMonth() + 1 + '/' + this.getDate();
};

Related Tutorials