Categories | Question details Back To List | ||
dhtmlX Thank you wary match your fast reply But the code don't working. Here is function waranty_last(date) { document.getElementById('waranty_ending').value = cal_waranty_last.getFormatedDate(null, waranty_end); return true;}
dates 2008-07-26 nextdate => 2008-07-27 waranty_end => 1081-07-27
what's wrong? thanks your help Answer posted by Support on Jul 21, 2008 06:36 One more update is necessary Instead of var waranty_end = dateFrom.setYear(parseInt(dateFrom.getYear())+waranty); Need to be used var waranty_end = dateFrom.setYear(parseInt(dateFrom.getFullYear())+waranty); |