var currentDate = new Date(); var expiryDate = new Date(); expiryDate.setMonth(expiryDate.getMonth() + 3); console.log(currentDate); console.log(expiryDate); //$uj@y