1 2 3 4 5 6 7 | var lastMestrualDate = document.getElementById('LastMestrualDate').value; var date = new Date(lastMestrualDate); var newdate = new Date(date); newdate.setDate(date.getDate() + 7); newdate.setMonth(newdate.getMonth() + 9); document.getElementById('EDD').value = newdate.getDay() + '/' + newdate.getMonth() + '/' + newdate.getFullYear(); |
0 Comments