I like to 2-way bind a Date to an input-control.
public dtm : Date;
...
this.dtm = new Date ();
...
<input type="text" placeholder="DD.MM.YYYY" [(ngModel)]="dtm"/>
If I do so then the input will show the date in its standard-format.
e.g. Sat Oct 19 2019 11:53:00 GMT+0200 (CEST)
Is it possible to have a form of 2-way (!) formatter for a special format (e.g. DD.MM.YYYY)?
I like to have a instance of Date in the code but also have a formatted output (Date -> DD.MM.YYYY) and a parsing of the input (DD.MM.YYYY -> Date).
EDIT At least I want to have a 2-way bind and a output-formatter. But I am not sure how to have [(ngModel)] and a date-pipe in place.