kekeh / angular-mydatepicker

Angular datepicker and date range picker :date:
https://kekeh.github.io/angular-mydatepicker/
MIT License
1 stars 11 forks source link

Date is not displayed on the input field with angular-mydatepicker #108

Open hemanth281 opened 2 years ago

hemanth281 commented 2 years ago

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)"/>

hemanth281 commented 2 years ago

Hi Team - Any update on this open issue? Any help would be much appreciated!

Sivaji12345 commented 11 months ago

@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?