Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

subtract dates javascript

var date = new Date();
date.setDate( date.getDate() - 6 ); //current date - 6 days
date.setFullYear( date.getFullYear() - 1 ); // current date - 1 year
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #subtract #dates #javascript
ADD COMMENT
Topic
Name
3+6 =