title: HTML5 | Datepicker only 5 days ahead in future
body: <p>I have a date picker on my web app, I only want the user to be able to click on a date between today and over 5 days (so today the date is 2020-06-02, the user should only be able to click on dates between 2020-06-02 and 2020-06-06).
  I have looked for solutions but the only thing I found was using a min and a max, but those do not work for me.
  Has anyone an idea how I can achieve this?</p>
  
  <p>This is my code:</p>
  
  <pre><code>&lt;div&gt;
      &lt;form method="post"&gt;
          &lt;label for="name"&gt;Locatie: &lt;/label&gt;&lt;br /&gt;
          &lt;input type="text" id="naam" asp-for="Locatie" /&gt;
          &lt;label for="Datetime"&gt;Datum: &lt;/label&gt;
          &lt;input value="05-19-2020T12:00" min="05-19-2020T12:00" type="datetime-local" id="DateTime" asp-for="DatumTijd" /&gt;
          &lt;input type="submit" value="Submit" /&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The min and the value both do not work, but it is what I have tried so thats why I am showing this.</p>