var endDate = new Date(); // // Set the expiry to one year from today // endDate.setMonth(endDate.getMonth()+12); var yyyy = endDate.getFullYear().toString(); var mm = (endDate.getMonth()+1).toString(); var dd = endDate.getDate().toString(); var endDateStr = yyyy + "-" + (mm[1]?mm:"0"+mm[0]) + "-" + (dd[1]?dd:"0"+dd[0]); //var URL = "http://quicklicensemanager.com/qlmdemov7/qlmservice.asmx/GetActivationKeyWithExpiryDate? //is_vendor=fastspring&is_productid=1&is_majorversion=1&is_minorversion=0&is_expdate=" + endDateStr; var referrer = (typeof referrer == 'undefined') ? "" : referrer; var company = (typeof company == 'undefined') ? "" : company; var response = httpPost("https://quicklicensemanager.com/qlmdemov10/qlm/qlmservice.asmx/GetActivationKeyWithExpiryDate", { "is_vendor": "fastspring", "is_productid": "1", "is_majorversion": "1", "is_minorversion": "0", "is_qlmversion": "5.0.00", "is_user": "", "is_pwd": "", "email": email, "company": company, "referrer": referrer, "internalProductName": product, "name": name, "quantity": quantity, "reference": reference, "is_expdate" : endDateStr } ); response.body;