I am using reactive forms, in this if i click on date from the bootstrap calendar, the value is coming as empty, but if i change the selected date from the formControl input, then that value has been taken. I am not getting where i am going wrong.
HTML:
<div class="form-group">
<label for="">Premium Commitment Date</label>
<input type="text" class="form-control" placeholder="MM/DD/YYYY" formControlName="premiumCommDate"
name="premiumCommDate"></div>
Ts:
$('.onlyDate').datetimepicker({
format: 'L'
});
this.agentbasicInfoForm = this.FB.group({
premiumCommDate: [''],
})