title: How to make date selection to available 3 days back from today?
body: <p>I am having a difficulty in making the date selection to be available for at least the past 3 days. Now my system is currently working fine but only able to select today date as the latest date.  I want it to be available for past 3 days. Lets say if it is 25 today and I want it to be available minimum 22 or whatever. </p>
  
  <p>Here is my codes for the input part. I hope someone can help me. Thanks a lot. :D</p>
  
  <pre><code> &lt;!-- Date --&gt;
                          &lt;div class="box-body"&gt;
                          &lt;div class="form-group"&gt;
                      &lt;label class="col-sm-2 control-label"&gt;Date: *&lt;/label&gt;
                          &lt;div class="col-sm-10"&gt;
                          &lt;?php 
  
                             $today = date("Y-m-d");
  
                          ?&gt;
  
                  &lt;input type="date" id="myDate" name="date" min="&lt;?php echo $today;?&gt;" selected value="&lt;?php echo $today;?&gt;" required=required/&gt;
  
                          &lt;/div&gt;
                          &lt;/div&gt;
                          &lt;/div&gt;&lt;!-- /.box-body --&gt;
  </code></pre>