I'm using latest Angular 4 and Angular-Material2-2.0.0-beta7. This is my template using MdDatePicker:
<md-input-container fxFlex="33" class="birthday-container">
<input mdInput name="birthday" placeholder="Birthday" required [(ngModel)]="member.birthday" [mdDatepicker]="birthdayPicker">
<button mdSuffix [mdDatepickerToggle]="birthdayPicker"></button>
</md-input-container>
<md-datepicker #birthdayPicker></md-datepicker>
In app.module, here is the provider:
{provide: DateAdapter, useClass: NativeDateAdapter}
And member.birthday is Date type.
But when JSON.stringify(member.birthday), it becomes one day before the selected date. For example:
Select 2017-4-1 from date picker, and the stringified result is 2017-03-31T13:00:00.000Z.
This post raised the same question but I'm not sure how to apply moment.js to the code.