import { NgModule , Pipe , PipeTransform } from '@angular/core' ; import { DateFnsInputDate } from './types' ; import getDay from 'date-fns/getDay' ; @ Pipe ( { name : 'dfnsGetDay' } ) export class GetDayPipe implements PipeTransform { transform ( date ) { return getDay ( date ) ; } } @ NgModule ( { declarations : [ GetDayPipe ] , exports : [ GetDayPipe ] } ) export class GetDayPipeModule { }