I have an input date where I put a date and another input date where N days appear after the day I fill in the first input date, but I want the N days do not count on Sundays.
What I did until now that is easy is to increase the N days but counting on Sunday
CODE
function myFunction() {
document.getElementById("myDate1").value=document.getElementById("myDate").value;
document.getElementById("myDate1").stepUp(5);
}
Date: <input type="date" id="myDate" >
<p>Click the button to increment the value of the date field by 5 days (each time you click).</p>
<button onclick="myFunction()">Try it</button>
<input type="date" id="myDate1" >
<p><strong>Note:</strong> The stepUp() method is not supported by Internet Explorer.</p>
<p><strong>Note:</strong> input elements with type="date" do not show as any date field/calendar in Firefox or in IE 11 and earlier versions.</p>