<span *ngIf="inputMode && form" [formGroup]="form">
    <span *ngIf="editMode" [core-mark-required]="field.required" class="core-mark-required"></span>
    <ion-datetime [formControlName]="'f_'+field.id" [placeholder]="'core.date' | translate" [max]="maxDate" [min]="minDate"
        [disabled]="searchMode && !searchFields!['f_'+field.id+'_z']" [displayFormat]="format" [displayTimezone]="displayTimezone">
    </ion-datetime>
    <core-input-errors *ngIf="error && editMode" [control]="form.controls['f_'+field.id]" [errorText]="error"></core-input-errors>

    <ion-item *ngIf="searchMode">
        <ion-label>{{ 'addon.mod_data.usedate' | translate }}</ion-label>
        <ion-checkbox slot="end" [formControlName]="'f_'+field.id+'_z'" [(ngModel)]="searchFields!['f_'+field.id+'_z']">
        </ion-checkbox>
    </ion-item>
</span>

<span *ngIf="displayMode && displayDate">
    {{ displayDate | coreFormatDate:'strftimedate' }}
</span>
