I am using ng2-datepicker in project. This is the code which I am using.
<ng2-datepicker class="form-control" required [options]="{format:'MMM DD YYYY'}" [(ngModel)]="User.StartDate" name="StartDate" #StartDate="ngModel"></ng2-datepicker>
I am stuck with
Its not able to make non-editable by a keyboard.
According to my requirement model User.StartDate is need to bind only the date string. But it bind with an object of data like {day:"12",formatted:"May 12 2017",momentObject:"2017-05-11T18:30:00.000Z",month:"05",year:"2017"}. Is there any way to hold only the date string in this ng2-datepicker.