Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to subtract time in javascript

var d = new Date();

d.setHours(d.getHours() - 2);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #subtract #time #javascript
ADD COMMENT
Topic
Name
6+6 =