title: How to Edit Date format in material-datepicker in angular 6 ?
body: <p>I am using material-datepicker for my angular 6 project..By default my date format from material-datepicker is dd-mm-yyyy.But i need yyyy-mm-dd..how can i do this.this is my code</p>
  
  <pre><code>&lt;mat-form-field style="margin-right: 25px;"&gt;
      &lt;input matInput [matDatepicker]="picker_start" placeholder="2018-08-31" [(ngModel)]="startdate" &gt;
      &lt;mat-datepicker-toggle matSuffix [for]="picker_start"&gt;&lt;/mat-datepicker-toggle&gt;
      &lt;mat-datepicker #picker_start&gt;&lt;/mat-datepicker&gt;
  &lt;/mat-form-field&gt;
  </code></pre>