Check out example codes for "applying datepipe on interepolating date in html from typescipt". It will help you in understanding the concepts better.

Code Example 1

tooltip="{{recentDate | date: 'medium'}}" // Using interpolation

Learn ReactJs, React Native from akashmittal.com