title: Set min date to current date in angularJS input
body: <p>In AngularJS, how can we set the <code>min</code> attribute of <code>input type="date"</code> to current date (today's) ?</p>
  
  <pre><code>&lt;input type="date" ng-model="data.StartDate" name="StartDate" min=?? /&gt;
  </code></pre>
  
  <p><strong>Edit1</strong></p>
  
  <p>I did what was suggested below and added this in controller - </p>
  
  <pre><code>$scope.currentDate = new Date();
  </code></pre>
  
  <p>And this in Html - </p>
  
  <pre><code>&lt;input type="date" ng-model="data.StartDate" name="StartDate" required min="{{currentDate | date:'yyyy-MM-dd'}}" /&gt;
  &lt;span ng-show="form.StartDate.$dirty &amp;&amp; form.StartDate.$invalid"&gt;
      &lt;span ng-show="form.StartDate.$error.required"&gt;Start Date is required&lt;/span&gt;
      &lt;span ng-show="form.StartDate.$error.min"&gt;Start Date should not be less than current date&lt;/span&gt;
  &lt;/span&gt;
  </code></pre>
  
  <p>Now, only the year is not allowing to be selected less than 2015. Also, if whole date is less than current date, then no validation is occuring. Required validation is working fine. Is <code>.min</code> correct way to check the field?</p>
  
  <p>Thanks</p>