When an ion-datetime field in Ionic 4 has no value, the label always floats as shown below.
Here is my code snippet:
<form [formGroup]="statusHandlerForm">
<ion-item class="input-container " align-items-center no-padding>
<ion-label position="floating" no-margin no-padding>Date of Loss</ion-label>
<ion-datetime no-padding formControlName="dateOfLoss" display-format="MMM DD, YYYY"></ion-datetime>
<ion-icon src="/assets/icon/calendar.svg" color="primary" slot="end"></ion-icon>
</ion-item>
</form>
Here is the output image: