Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

current date minus years 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: #current #date #years #javascript
ADD COMMENT
Topic
Name
2+3 =