title: How to set input field's max date from current date
body: <pre><code> &lt;input type=&quot;date&quot; name=&quot;date&quot; min=
       &lt;?php
           echo date('Y-m-d');
       ?&gt;
   &gt;
  </code></pre>
  <p>I want users to select a date between current date to next 7 days. This input min disables past dates from current date . Now how can I set the max limit next 7 days from current date?</p>