0
I have this date in string format:
Sun May 16 2021 09:54:25 GMT-0300 (Horário Padrão de Brasília)
And I want to put it in the front-end form:
<div class="ui-grid-col-6">
<vale-calendar [showTime]="true" [showSeconds]="true"
[showIcon]="false" formControlName="dataFim" [locale]="appService.locale" icon="fa fa-calendar" name="dataFim"></vale-calendar>
</div>
To put the value in the form I am using the value of element.value. The value of element.label is dataFim
element.value === null ? this.form.controls[element.label].setValue(null) : this.form.controls[element.label].setValue(element.value);
Error obtained:
ERROR Error: Uncaught (in Promise): Missing number at position 0
What am I doing wrong?