Strange Date format in mat-datepicker

Discussão em 'Angular' iniciado por Ariel Spais, Fevereiro 12, 2025.

  1. Ariel Spais

    Ariel Spais Guest

    Im having 2/1/2025 in this mat-datepicker but it shows the number as a fraction.

    Im trying to see the date in the correct format.

    Example

    ` <mat-form-field appearance="outline" color="accent" class="w-100">
    <input matInput
    [matDatepicker]="picker"
    formControlName="fechaNacimiento" >
    <mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
    <mat-datepicker #picker></mat-datepicker>
    <mat-error>El campo es obligatorio</mat-error>
    </mat-form-field>`


    it seems to be something related to styles

    Continue reading...

Compartilhe esta Página