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 61 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
- 591
- 5
- 14
Matus Dubrava
- 12,128
- 2
- 31
- 49