1<ion-item>
2 <ion-label>MMMM</ion-label>
3 <ion-datetime displayFormat="MMMM" value="2012-12-15T13:47:20.789"></ion-datetime>
4</ion-item>
5
6<ion-item>
7 <ion-label>MM DD YY</ion-label>
8 <ion-datetime displayFormat="MM DD YY" placeholder="Select Date"></ion-datetime>
9</ion-item>
10
11<ion-item>
12 <ion-label>YYYY</ion-label>
13 <ion-datetime [pickerOptions]="customPickerOptions" placeholder="Custom Options" displayFormat="YYYY" min="1981" max="2002"></ion-datetime>
14</ion-item>
15
16<ion-item>
17 <ion-label position="stacked">MMMM YY</ion-label>
18 <ion-datetime displayFormat="MMMM YY" min="1989-06-04" max="2004-08-23" value="1994-12-15T13:47:20.789"></ion-datetime>
19</ion-item>
20
21<ion-item>
22 <ion-label position="floating">MM/DD/YYYY</ion-label>
23 <ion-datetime displayFormat="MM/DD/YYYY" min="1994-03-14" max="2012-12-09" value="2002-09-23T15:03:46.789"></ion-datetime>
24</ion-item>
25
26<ion-item>
27 <ion-label position="floating">MM/DD/YYYY</ion-label>
28 <ion-datetime displayFormat="MM/DD/YYYY" min="1994-03-14" max="2012-12-09"></ion-datetime>
29</ion-item>
1public date:any = new Date().toISOString();
2...
3<ion-datetime [(ngModel)]="date"
4 displayFormat="MMM DD, YYYY HH:mm"
5 formControlName="myDate">
6</ion-datetime>