Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js date subtract minutes

var MS_PER_MINUTE = 60000;
var result = new Date(originalDate.valueOf() - durationInMinutes * MS_PER_MINUTE);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #date #subtract #minutes
ADD COMMENT
Topic
Name
9+6 =