Answers for "add days hours and minutes to milliseconds javascript"

12

javascript add minutes to date

//add 30 minutes to date
var minutesToAdd=30;
var currentDate = new Date();
var futureDate = new Date(currentDate.getTime() + minutesToAdd*60000);
Posted by: Guest on July-31-2019
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 "add days hours and minutes to milliseconds javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language