function SetDuration() { try { var month = document.getElementById("ddlContractDuration").value; var CurrentDate = new Date(); var toDate = new Date(); toDate.setMonth(Number(toDate.getMonth()) + Number(month)); document.getElementById('txtDuration').value =toDate.toString('mm/dd/yyyy'); } catch (ex) { alert(ex.Message()); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)