jhipster input datetime-local show only date

I have and app generated using jhipster. I have "Person" module, where each people has a "Birthdate" column. All works fine but the app shows the birthdate including time and I wan't to show that like this. I need to show only the date like this "dd/mm/yyyy"

Can any one help me please?

This is my code:

input id="field_fechaNacimiento" type="datetime-local" class="form-control" name="fechaNacimiento" [(ngModel)]="persona.fechaNacimiento" required/>

persona.fechaNacimiento = 01/09/2018T00:00

The front shows: 01/09/2018T00:00

I need to show: 01/09/2018

Date without time

Upvotes: 0

Views: 2298

Answers (1)

Makako
Makako

Reputation: 86

Have you tried using LocalDate instead of instant? Here are some other types: https://www.jhipster.tech//jdl/#types_and_constraints

Upvotes: 1

Related Questions