We are using ngbDatePicker in our application. From backend getting date as a string and ngbDatePicker work with {year: Value, month: Value, day: Value}.
<div class="input-group">
<input class="form-control"
placeholder="yy/mm/dd"
[(ngModel)]="registerDate"
ngbDatepicker
#d="ngbDatepicker" >
<button class="input-group-addon" (click)="d.toggle()" type="button">
<i class="fa fa-calendar"></i>
</button>
</div>
Here registerDate value coming as string.
its not reading string formate how come i make it readble by ngbDatepicker.