Answers for "js add 7 days to my date.now"

1

javascript current date add 30 days

var future = new Date();
future.setDate(future.getDate() + 30);
Posted by: Guest on April-26-2020
0

javascript get 7 days from now

var date = new Date();
date.setDate(date.getDate() - 13);

console.log(date);
Posted by: Guest on March-11-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language