Format Date as DD/MM/YYYY - Node.js Date

Node.js examples for Date:Date Format

Description

Format Date as DD/MM/YYYY

Demo Code

Date.prototype.format = function() {
  var d = new Date();
  var curr_date = d.getDate();
  var curr_month = d.getMonth();
  var curr_year = d.getFullYear();
  return (curr_date + "/" + curr_month + "/" + curr_year);
}

Related Tutorials