javascript add minutes to date
snippet in javascript

javascript add minutes to date

user8513

//add 30 minutes to date
var minutesToAdd=30;
var currentDate = new Date();
var futureDate = new Date(currentDate.getTime() + minutesToAdd*60000);