title: TypeScript(Angular) Datetime To Date
body: <p>I got this error message </p>
  
  <blockquote>
    <p>The specified value "2019-04-13T00:00:00" does not conform to the
    required format, "yyyy-MM-dd".</p>
  </blockquote>
  
  <p>I want to change the date / time to a date.</p>
  
  <p>datetime example:2019-04-13T00:00:00</p>
  
  <p>I want to do example:2019-04-13</p>
  
  <p>HTML</p>
  
  <pre><code> &lt;input
    class="form-control mr-sm-2"
    id="dates"
    name="achievement_date"
    [(ngModel)]="addItems.achievement_date"
    required
    type="date"
    placeholder="Tournament Date"
  /&gt;
  </code></pre>