Answers for "invalidpipeargument: into a date' for pipe 't'"

2

Error: InvalidPipeArgument: 'Unable to convert "2021-02-13 04:24:56" into a date' for pipe 'DatePipe

You have to convert the value to "Date" before your pipe
Posted by: Guest on February-25-2021
0

InvalidPipeArgument: '[object Object]' for pipe 'AsyncPipe'

export class MoviesComponent implements OnInit {
  movies: any[];

  constructor(private moviesDb: MoviesService) { }

  ngOnInit() {
    this.moviesDb.get().subscribe((snaps) => {
       this.movies = snaps;
   });
 }
}
Posted by: Guest on January-20-2021

Code answers related to "invalidpipeargument: into a date' for pipe 't'"

Browse Popular Code Answers by Language