change from angular 9 date to time code example
Example: angular change how date looks
// use Angular DatePipe
{{ dateObj | date: 'format desired' }}
{{ dateObj | date:'shortDate' <or> 'M/d/yy' }} // output is '1/25/21'
{{ dateObj | date:'mediumDate' <or> 'MMM d, y' }} // output is 'Jan 25, 2021'
{{ dateObj | date:'longDate' <or> 'MMMM d, y' }} // output is 'January 25, 2021'