I'm encountering an issue while setting up an ion-datetime input field in my Ionic 4 application. The problem I'm facing is that only the current and past dates are visible, whereas I need to display future dates as well for a "To Do" form. How can I ensure that users can only select the current date or dates in the future?
Here's the code for my "ion-datetime" fields:
<ion-item>
<ion-label>Start Time</ion-label>
<ion-datetime
pickerFormat="D M YYYY h m A"
displayFormat="YYYY MMMM DD HH mm"
[(ngModel)]="StartTime">
</ion-datetime>
</ion-item>
<ion-item>
<ion-label>End Time</ion-label>
<ion-datetime
pickerFormat="D M YYYY h m A"
displayFormat="YYYY MMMM DD HH mm"
[(ngModel)]="EndTime">
</ion-datetime>
</ion-item>
The currently displayed dates are as follows:
https://i.sstatic.net/ZJ4Lc.png
If you require any additional information to assist with resolving this issue, please let me know.