import { NgModule , Pipe , PipeTransform } from '@angular/core' ; import endOfToday from 'date-fns/endOfToday' ; @ Pipe ( { name : 'dfnsEndOfToday' } ) export class EndOfTodayPipe implements PipeTransform { transform ( ) { return endOfToday ( ) ; } } @ NgModule ( { declarations : [ EndOfTodayPipe ] , exports : [ EndOfTodayPipe ] } ) export class EndOfTodayPipeModule { }