format date helper

This commit is contained in:
Tykayn 2022-02-16 12:36:51 +01:00 committed by tykayn
parent 65fbb6322b
commit 3faecc4035

View File

@ -6,7 +6,9 @@
<label class="pull-left" for="dateChoices_{{ id }}"> <label class="pull-left" for="dateChoices_{{ id }}">
{{ 'dates.element' | translate }} {{ id + 1 }} {{ 'dates.element' | translate }} {{ id + 1 }}
</label> </label>
<span class="format-helper pull-right">{{ 'dates.format_helper' | translate }}</span> <p class="format-helper pull-right" id="format-date-{{ id }}">
{{ 'dates.format_helper' | translate }}
</p>
<input <input
[ngModel]="choice.date_object | date: 'yyyy-MM-dd'" [ngModel]="choice.date_object | date: 'yyyy-MM-dd'"
(ngModelChange)="convertDateInput($event, id)" (ngModelChange)="convertDateInput($event, id)"