Answers for "add 30 mins to javascript date"

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
1

javascript current date add 30 days

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

Code answers related to "add 30 mins to javascript date"

Code answers related to "Javascript"

Browse Popular Code Answers by Language