react add days to date code example
Example 1: js date add 1 day
let date = new Date();
// add a day
date.setDate(date.getDate() + 1);
Example 2: nodejs date add days
date.setTime( date.getTime() + days * 86400000 );
let date = new Date();
// add a day
date.setDate(date.getDate() + 1);
date.setTime( date.getTime() + days * 86400000 );