import { Pipe , PipeTransform } from '@angular/core' ; import dayjs from 'dayjs/esm' ; @ Pipe ( { name : 'formatMediumDate' , } ) export class FormatMediumDatePipe implements PipeTransform { transform ( day ) { return day ? day . format ( 'D MMM YYYY' ) : '' ; } }