Answers for "javascript get 7 days from now"

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
0

javascript date - 7 days

var date = new Date("08-02-2020");
date.setDate(date.getDate() + 7);

console.log(date);
Posted by: Guest on January-24-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language