import { Inject , Pipe , PipeTransform } from '@angular/core' ; import { DatePipe } from '@angular/common' ; @ Pipe ( { name : 'ansynDate' } ) export class AnsynDatePipe extends DatePipe implements PipeTransform { transform ( value , args ? ) { return super . transform ( value , 'dd/MM/yyyy HH:mm:ss' ) ; } }