creating custom pipes in angular code example
Example 1: command to create custom pipe in angular 6
ng generate pipe personName
Example 2: applying datepipe on interepolating date in html from typescipt
tooltip="{{recentDate | date: 'medium'}}" // Using interpolation