excel add minutes to time code example
Example 1: 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);
Example 2: excel add one hour
'To add an hour to a date or time value in Excel...
'As a worksheet formula:
=A1 + 1/24
'And it works in VBA as well:
MsgBox Now + 1/24
Example 3: add minutes to time in excel
=time+(minutes/1440)