I have this in .ts file :
 this.newDate = '18.06.2009';
In my html i have this:
  <h5 class="datetime">{{ newDate | date: 'dd MMMM yyyy'}}</h5>
Any suggestion what is wrong with this? How can i fix that so that i get:
1 June 2009
				I have this in .ts file :
 this.newDate = '18.06.2009';
In my html i have this:
  <h5 class="datetime">{{ newDate | date: 'dd MMMM yyyy'}}</h5>
Any suggestion what is wrong with this? How can i fix that so that i get:
1 June 2009
				
The date pipe expects a timestamp(number) or a
Dateinstance and you're sending a string as input. You can create the date object with something like:and then it will work correctly. Have a look at the docs for more info on how to work with dates.