I am using a datepipe to convert a Date into a string.
var mydate : Date = new Date ();
That works in the template
{{ mydate | date: "dd.MM.yyyy" }}
as well as in the class
let str : string = this.dp.transform (dtm, "dd.MM.yyyy");
Is there a way to do the reverse? So the pipe should parse a string and gets me a Date.