Is there a way to convert the Timestamp format "2021-07-18T9:33:58.000Z" to display as 18th July (for date) or 9:33 am (for time) in an Angular 11 application? Currently, my code looks like this:
const myDate = new DatePipe('en-US').transform(timestamp,'shortTime' );
However, I'm encountering an error: InvalidPipeArgument: 'Unable to convert "2021-07-18T9:33:58.000Z" into a date' for pipe 'DatePipe'
If you have any suggestions, I would greatly appreciate it.