Skip to content
Advertisement

Tag: date-pipe

Angular and date from PHP InvalidPipeArgument: ‘Unable to convert “[object Object]” into a date’ for pipe ‘DatePipe’

I have application written in Angular 9 and api written in PHP. From controller in PHP I return list of objects with property finishDate. In PHP finishDate is assign to DateTime: TimeSheetsOrderDTO in TypeScript: In TypeScript (Angular) I see data from controller as below: I want to display finishDate in html. When I have code like this: I see: When

Advertisement