Get the date of next day - Node.js Date

Node.js examples for Date:Day

Description

Get the date of next day

Demo Code

Date.prototype.nextDay = function () {
  var date = new Date

  date.setFullYear(this.getFullYear())//from  www  .j av a 2  s  .c  o  m
  date.setMonth(this.getMonth())
  date.setDate(this.getDate() + 1)

  return date
}

Related Tutorials