Open hemanth281 opened 2 years ago
Hi Team - Any update on this open issue? Any help would be much appreciated!
@hemanth281 I'm also facing same issue. When my project is in Angular 8. I used ngx-mydatepicker its good for all my cases. I upgraded to angular 15 and replaced with angular-mydatepicker. Date is not populating. Did you have any solution for this?
When using ngx-mydatepicker, I was able to display the date( for ex: 01/13/2022) on the input field. But when I upgraded to angular-mydatepicker with angular 11, the date is not displayed on the input field. However, placeholder mm/dd/yyyy is getting displayed instead of actual date( for ex: 01/13/2022). If you see the code below dateModel variable holds the date with ngModel data-binding, I would expect to display the date on input field.
Code: <input type="text" maxlength="10" placeholder="mm/dd/yyyy" cbsRestrict restrictionType="dateFormat" class="form-control form-control-sm input-calender" angular-mydatepicker name="mydate" [(ngModel)]="dateModel" [options]="myDatePickerOptions" #dp="angular-mydatepicker" (inputFieldChanged)="onInputFieldChanged($event)" [attr.disabled]="disabled?'':null" (dateChanged)="onDateChanged($event)"/>