1// use Angular DatePipe
2{{ dateObj | date: 'format desired' }}
3
4{{ dateObj | date:'shortDate' <or> 'M/d/yy' }} // output is '1/25/21'
5{{ dateObj | date:'mediumDate' <or> 'MMM d, y' }} // output is 'Jan 25, 2021'
6{{ dateObj | date:'longDate' <or> 'MMMM d, y' }} // output is 'January 25, 2021'