0
In the system there is a field to insert a date. I want to block the input to insert only the dd/mm/yyyy values
<mat-form-field class="input-full-width">
<mat-label>Data citação</mat-label>
<input matInput [matDatepicker]="datePickerCriacao" [max]="hoje" (click)="datePickerCriacao.open()" id="dataCitacao" placeHolder="Data citação" [(ngModel)]="dataCitacao" name="dataCitacao" maxlength="10">
<mat-datepicker-toggle matSuffix [for]="datePickerCriacao"></mat-datepicker-toggle>
<mat-datepicker #datePickerCriacao></mat-datepicker>
</mat-form-field>
tries to add a type date or number to the input
– Eduardo Vargas