format date mmm angular code example
Example 1: angular date pipe
// In Angular
// Html
<p>{{myDate | date: 'dd-MM-yyyy'}}</p>
// Typescript
myDate: Date = new Date();
Example 2: show timestamp as yyyy mm dd html angular
{{date | date:'yyyy-MM-dd'}}