Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js subtract days

var dateOffset = (24*60*60*1000) * 5; //5 days
var myDate = new Date();
myDate.setTime(myDate.getTime() - dateOffset);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #subtract #days
ADD COMMENT
Topic
Name
5+2 =