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!
Asked
Active
Viewed 63 times
-2
-
You can write your own function to do the same. – Satish Kumar Apr 01 '18 at 18:07
1 Answers
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