I am using ionic 5 with ion-datetime component. My requirement is to picl 2 dates but for some reasons the component does not let me pick more than one date. below is the code i have:
<ion-row>
<ion-col >
<ion-datetime presentation="date" multiple="true" preferWheel="false" [(ngModel)]="packageEstimatedDated"></ion-datetime>
</ion-col>
</ion-row>
CodePudding user response:
Multiple Date Selection only works on ionic v6 or later you can check the v5 document from here.
To achieve that I prefer you upgrade to v6 or you can use a third-party library like ion2-calendar
you can check this article