Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript date 3 months ago

var someDate = new Date(); // add arguments as needed
someDate.setTime(someDate.getTime() - 3*28*24*60*60);
// assumes the definition of "one month" to be "four weeks".
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #date #months
ADD COMMENT
Topic
Name
8+1 =