Hello,
I have to set date of DatePickerSelectLikelyDate to the date which is addition of selected in DatePickerLikelyDate and txtTimeLag (no of days )
but I am getting error that setDate is not supported function. I have used this function on OnBlur event of txtTimeLag.
function SetLikelyDate(txtTimeLag) {
var text = document.getElementById('<%=txtTimeLag.ClientID%>');
var datePicker = $find("<%= DatePickerLikelyDate.ClientID %>");
var datePickerSelectLikelydate = $find("<%= DatePickerSelectLikelyDate.ClientID %>");
if (text != null) {
var timelag = text.value;
var currentdate = new Date(datePicker.get_selectedDate()).format("MM/dd/yyyy");
alert(timelag);
currentdate.setDate(currentdate.getDate() + timelag);
datePickerSelectLikelydate.set_selectedDate(currentdate);
alert(currentdate);
}
Please suggest.
Thanks,
Nandkishor.