-2

I want to get the next day's date in Javascript. I can't find anything that will return it like the getDate() function. Thanks!

Luke Strong
  • 19
  • 1
  • 3

1 Answers1

2

There is something like that, called setDate().

var date = new Date();
date.setDate(date.getDate() + 1);
console.log(date);
Satish Kumar
  • 601
  • 6
  • 14
Matus Dubrava
  • 13,637
  • 2
  • 38
  • 54