title: angular input type datetime-local validation
body: <p>In my angular application for date time  selection I am using input  type="datetime-local".</p>
  
  <pre><code> &lt;input id="field_bookingTime" type="datetime-local" class="form-control" name="bookingTime" [(ngModel)]="bookingTime"
     required/&gt;
  </code></pre>
  
  <p>Now I need to disable the dates that are previous to current date and the dates that are 3 days next to current date. For example for min, I have added validations as shown below. But the validations are not working, still the previous dates are getting enabled in the displayed calendar. </p>
  
  <pre><code>currentDate = new Date();
  
       &lt;input [min]="currentDate" id="field_bookingTime" type="datetime-local" class="form-control" name="bookingTime" [(ngModel)]="bookingTime"
         required/&gt;
  </code></pre>