Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get 5 months after date in javascript

var currentDate = new Date();
var expiryDate = new Date();
expiryDate.setMonth(expiryDate.getMonth() + 3);
console.log(currentDate);
console.log(expiryDate);

//$uj@y
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #months #date #javascript
ADD COMMENT
Topic
Name
8+1 =