Ion-datetime as an alert instead of ActionSheet ionic-v4

Hi,

Is there any way to display ion-datetime to display as an alert instead of action sheet? This is in ionic 4.1.2. I had created the same question for ionic v3 (Here). The solution suggested there worked for v3 but doesn’t work for v4. Any idea?

Thank you