0
I am developing a form in which birth date is required:
<div class="form-group">
<label for="name">Data Nascimento</label>
<input type="text" placeholder="Insira Data" class="form-control" id="dataNascimento" required [(ngModel)]="user.dataNascimento" name="dataNascimento" bsDatepicker>
</div>
I’m using the library bsDatepicker to Create a Calendar.
Imagery
In the listing appears a strange format: 2018-12-07T05:00:00.000Z the errr date invalidates.
User ts.
export class User {
id: number;
nome: string;
email: string;
sexo:string;
nacionalidade: string;
naturalidade: string;
cpf: string;
dataNascimento: string;
}
bsDatepicker needs to change to en BR if I’m not mistaken ... is in American format
– novic
In which part of the code I change it ?
– alexjosesilva
https://valor-software.com/ngx-bootstrap/#/datepicker#locales gives a read
– novic