Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript date minus minutes

var endDate = somedate;

var startdate = new Date(endDate);

var durationInMinutes = 20;

startdate.setMinutes(endDate.getMinutes() - durationInMinutes);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #date #minutes
ADD COMMENT
Topic
Name
1+2 =