import dayjs from 'dayjs' ; param isoDate param formatStr returns export const formatDate = ( isoDate , formatStr = 'DD/MM/YYYY' ) => { return dayjs ( isoDate ) . format ( formatStr ) ; } ; param endDate param progress export const isOverDue = ( endDate , progress ) : boolean => { const now = dayjs ( ) ; const end = dayjs ( endDate ) ; return now . isAfter ( end ) && progress !== 100 ; } ;