date pipe vs custom function code example
Example: applying datepipe on interepolating date in html from typescipt
tooltip="{{recentDate | date: 'medium'}}" // Using interpolation
tooltip="{{recentDate | date: 'medium'}}" // Using interpolation