title: How to set date default value for reactive form in Angular 6?
body: <p>I have the form for date filter and I trying set the default value for the start and end date for date inputs.</p>
  
  <pre><code>&lt;form [formGroup]="filter" (ngSubmit)="applyFilter()"&gt;
  &lt;mat-form-field&gt;
      &lt;input matInput [matDatepicker]="start" formControlName="start" placeholder="Начальная дата"&gt;
      &lt;mat-datepicker-toggle matSuffix [for]="start"&gt;&lt;/mat-datepicker-toggle&gt;
      &lt;mat-datepicker #start&gt;&lt;/mat-datepicker&gt;
  &lt;/mat-form-field&gt;
  &lt;mat-form-field&gt;
      &lt;input matInput [matDatepicker]="end" formControlName="end" placeholder="Конечная дата"&gt;
      &lt;mat-datepicker-toggle matSuffix [for]="end"&gt;&lt;/mat-datepicker-toggle&gt;
      &lt;mat-datepicker #end&gt;&lt;/mat-datepicker&gt;
  &lt;/mat-form-field&gt;
  </code></pre>
  
  <p></p>
  
  <p>And TS part</p>
  
  <pre><code>refreshFilter() {
    const now = new Date();
    const monthAgo = new Date().setMonth(now.getMonth() - 1).toString();
    console.log(monthAgo)
    console.log(now)
    this.filter = new FormGroup({
    start: new FormControl(monthAgo, []),
    end: new FormControl(now, [])
    });
  </code></pre>
  
  <p>}</p>
  
  <p>My <code>console.log()</code> for the month ago is <code>1533908066234</code> but for new Date is <code>Mon Sep 10 2018 16:34:26 GMT+0300</code> and with timestamp form input doesn't work. How to get correct format date of month ago for success setting into <code>FormControl</code>?</p>