How to add 1 day to string date in JavaScript?

 

How to add 1 day to date in typescript?

 

var date = new Date();

// add a day
date.setDate(date.getDate() + 1);

Tags:

Share:

Related posts