How to add 1 day to a date in TypeScript

1 Answer

0 votes
const date = new Date();

date.setDate(date.getDate() + 1);

console.log(date.toDateString()); 


  
  
  
  
/*
run:
  
"Mon Mar 07 2022" 
  
*/

 



answered Mar 6, 2022 by avibootz

Related questions

...