import fillWithZeros from '../helpers/fillWithZeros' ; example param value const formatToDate = ( value ) : string => ( fillWithZeros ( value . getDate ( ) , 2 ) + '/' + fillWithZeros ( value . getMonth ( ) + 1 , 2 ) + '/' + fillWithZeros ( value . getFullYear ( ) , 4 ) ) ; export default formatToDate ;