I'm trying to use the ng2-datepicker for choosing a date and afterwards displaying it on a table. I'm having the issue that the binding to my chosen date doesn't work. I guess that it has to do something with the format option that I made (DD.MM.YYYY). In my html, I have this code:
<ng2-datepicker [(ngModel)]="date" [options]="datepickeroptions"></ng2-datepicker>
datepickeroptions with typescript is like this:
this.datepickeroptions = {
format: "DD.MM.YYYY",
locale: "de",
};
I tried to initialize the date variable as Date and as string, but none of them worked. I get just [object Object] as value from ngModel although the value in the input container looks ok. Thanks in advance for your help.

Finally, I came to a solution! At first I found out that the json pipe gave me the right properties. Then I created a deadlineinput on my .ts file of type any and initialized it like this in the OnInit:
here, one could also add the other options he wants to access (the json and on the html looks like this:
I put this on the .hmtl:
I know that it shouldn't be like this, and I opened an Issue for the current version on github, but at least it's a workaround which helps me for now.