title: Angular 5 Date Validation (accepted min and max)
body: <p>I cant seem to find a simple solution to this but I have a date input like so..</p>
  
  <pre><code>&lt;input [(ngModel)]="toolDate" type="text" class="tool_input tool_input__date"&gt;
  </code></pre>
  
  <p>now Im using <a href="https://nosir.github.io/cleave.js/" rel="nofollow noreferrer">https://nosir.github.io/cleave.js/</a> to control the input so you cant write anything but a date so In my app.component.ts</p>
  
  <pre><code>export class ...
     toolDate = moment().format('DD/MM/YYYY');
  
  ngOnInit() {
      const cleave = new Cleave('.tool_input__date', {
        date: true,
        datePattern: ['d', 'm', 'Y']
      });
  }
  </code></pre>
  
  <p>so I don't need date format validation but I do need min and max date validation.. so a user cant type in less than say 01/01/2017 and cant enter a date past the current date </p>
  
  <p>now I know that by default you can use date and set a min and max but I don't want to use the default html date picker </p>
  
  <p>Any help would be appreciated!</p>
  
  <p>Thanks</p>