Ionic 2 ion-datetime default value with FormBuilder


#1

My form:

this.freeCalcForm = this.formBuilder.group({ partyADOB: ['Jan 1, 1980'], });

View:

<ion-datetime formControlName="partyADOB" required></ion-datetime>

If I console.log the form the value of the partyADOB is set fine.


#2

You must use ISO 8601 format.