I am looking for a solution to change the color of the underline on invalid dates to red. I have not attempted any fixes yet as there doesn't seem to be any similar query online.
Here's the code snippet related to Date and Time:
<ng-container *ngSwitchCase="'picker'">
<ion-item no-padding class="item-icons">
<ion-label [attr.missing-detail]="missingDetail(field.formControlName) ? '' : null"
class="form-label"
stacked>
{{ (field.label | translate) + ': ' + isFieldRequired(field.validators.required)}}
</ion-label>
<ion-datetime
[max]="field.validators?.max ? field.validators?.max : null"
[required]="field.validators?.required"
(ionChange)="refreshDateTimePicker(field.formControlName)"
[formControlName]="field.formControlName"
[cancelText]="'COMMON.CANCEL' | translate" [doneText]="'COMMON.DONE' | translate"
[displayFormat]="field.others.displayFormat" [pickerFormat]="field.others.pickerFormat">
</ion-datetime>
<mat-icon item-right [svgIcon]="field.others.icon"></mat-icon>
</ion-item>
</ng-container>