1
Answer

Bind date to a formControlname input in Angular7

Hi,
 I am new to angular. I have an input with type "date".How will I bind the date to this input?
 
 <input type="date" class="form-control" formControlName="startDateInput">
  i tried like this but didnt work for me
 
this.createForm.patchValue({
startDateInput:this.resourceData['period'].start,
});
 
please help to do this 
Answers (1)