I want to use the DatePipe in HTML
{{ timeslot | date }}
but I get the error
error NG8004: No pipe found with name 'date'
My app.module.ts imports the common module
import { CommonModule } from '@angular/common';
@NgModule({
  imports: [
     CommonModule,
  ],
  declarations: [],
}
What I am doing wrong?
 
     
    