Hi,
I'm a novice. I need to add a certain number of days to a date entered in a field (dd/mm/yyyy) and then display the calculated date in another field in the same format, dd/mm/yyyy. Here is what I have so far. I appreciate your help:
Many thanks.
I'm a novice. I need to add a certain number of days to a date entered in a field (dd/mm/yyyy) and then display the calculated date in another field in the same format, dd/mm/yyyy. Here is what I have so far. I appreciate your help:
Code:
function calDate() { var date1 = new Date(document.getElementById('date_field1').value); document.getElementById("date_field2").value = date1.setDate(date1.getDate()+5); }
Comment