Answers for "js add 5 days to date"

1

javascript current date add 30 days

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

new date() in javascript 3 days from now

var dt = new Date();
dt.setDate(dt.getDate() + 3);
Posted by: Guest on July-08-2020
6

javascript add days to date

var myCurrentDate=new Date();
var myFutureDate=new Date(myCurrentDate);
    myFutureDate.setDate(myFutureDate.getDate()+ 8);//myFutureDate is now 8 days in the future
Posted by: Guest on July-25-2019

Code answers related to "Javascript"

Browse Popular Code Answers by Language