ng-bootstrap datepicker format
<p>I am using <a href="https://github.com/ng-bootstrap/ng-bootstrap" rel="noreferrer"><strong>ng-bootstrap</strong></a> datepicker but when I save my form the date gets saved as.</p>

<pre><code>date: {
  day: 01,
  month: 12,
  year: 16
}
</code></pre>

<p>I was hoping I could get it to save as something more like <code>"2016-11-23T00:39:31.768Z"</code></p>

<p>Here is my implementation:</p>

<pre><code>&lt;div class="input-group"&gt;
  &lt;button class="input-group-btn" (click)="d.toggle()" &gt;
    &lt;md-icon svgSrc="assets/images/calendar-plus.svg" style="cursor: pointer;"&gt;&lt;/md-icon&gt;
  &lt;/button&gt;
  &lt;input class="form-control" placeholder="dd-mm-yyyy" name="dp" formControlName="due_date" navigation="arrows" ngbDatepicker #d="ngbDatepicker"&gt;
&lt;/div&gt;
</code></pre>

<p>And form.component:</p>

<pre><code>constructor( private fb: FormBuilder ) {
    this.form = this.fb.group({
      due_date: [''],
    });
  }
</code></pre>