Answers for "calculate months and days on year past javascript function"

1

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
Posted by: Guest on December-14-2021

Code answers related to "calculate months and days on year past javascript function"

Code answers related to "Javascript"

Browse Popular Code Answers by Language